Results 1 to 9 of 9
Thread: Heap problems in Eclipse?
- 06-18-2011, 04:10 AM #1
Member
- Join Date
- Sep 2010
- Posts
- 47
- Rep Power
- 0
Heap problems in Eclipse?
Hello everyone. I am getting OOME's in Eclipse when trying to run my code. I added -Xms and -Xmx arguments to my eclipse.ini file (under the vmargs section), and gave them a generous 800mb. When I open Eclipse, I see that the bar showing my heap has a new max of 800mb. When I run my code, however, the 'used' bar never goes past 40mb, but I get the error. I even changed my run settings and put in -Xms and -Xmx args there as well.
- 06-18-2011, 06:20 AM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Go to the run configuration and and add those options to the VM arguments text area on the arguments tab.
- 06-18-2011, 04:23 PM #3
Member
- Join Date
- Sep 2010
- Posts
- 47
- Rep Power
- 0
I did that as well to no avail.
- 06-18-2011, 04:25 PM #4
What is your code doing that makes it run out of memory? Do you have a recursive loop?
Try catching the exception and printing the stack.
-
what exactly is your error message? Are you running out of stack memory? Do you have uncontrolled recursion going on?
- 06-18-2011, 04:57 PM #6
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,406
- Blog Entries
- 7
- Rep Power
- 17
When people rob a bank they get a penalty; when banks rob people they get a bonus.
- 06-18-2011, 04:58 PM #7
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
You also get OOME's for to many handles and/or too many threads, etc. You do know that, right?
That was meant for the OP, BTW.Last edited by masijade; 06-18-2011 at 05:01 PM.
- 06-18-2011, 05:30 PM #8
Member
- Join Date
- Sep 2010
- Posts
- 47
- Rep Power
- 0
I think the problem was trying to create an array with too many elements, but I really didn't think two arrays of longs with 10,000 elements each should really make a problem. I found another way to solve the assignment, but I still would like to solve the heap problem. The error was just the regular out of memory: heap
- 06-18-2011, 06:17 PM #9
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Similar Threads
-
eclipse plug-in problems
By vasug in forum EclipseReplies: 2Last Post: 02-01-2010, 08:44 AM -
Problems with Eclipse
By masko in forum New To JavaReplies: 2Last Post: 01-24-2009, 06:58 PM -
problems in eclipse 3.3.2
By KiDHaCK in forum EclipseReplies: 0Last Post: 06-17-2008, 04:55 PM -
Problems with hibernate and eclipse
By Albert in forum JDBCReplies: 2Last Post: 06-05-2008, 03:34 PM -
Problems with Eclipse
By Daniel in forum EclipseReplies: 1Last Post: 07-06-2007, 04:23 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks