I\'m getting this error when I run or debug my GA/AI from MyEclipse:
Exception in thread \"main\" java.lang.OutOfMemoryError: Java heap space
eclipse.ini looks l
There are a number of ways to get heap dumps. Here are some I've used:
-XX:+HeapDumpOnOutOfMemoryError
should get you dump if you hit your OOM.If you're running Java 6, jmap should work on Windows. This might be useful if you want to dump the heap and you haven't hit your OOM. Use Windows Task Manager to find the pid of your Java app, and in a console run this:
jmap -dump:format=b,file=c:\heap.bin
In addition to VisualVM, the Eclipse Memory Analyzer (also free) can help you analyze what's eating up all the space once you've got the dump.