07-07-2014, 02:49 PM
Another option that might be a little easier is to try launching MHQ from the command line with the following options:
This will launch MHQ as normal, but if you run out of memory while the app runs, it will create a "heapDump.hprof" file. The file will be fairly large (around a gig since that's the memory limit configured), but you can zip it up and it will compress nicely.
Note, this only works if you're getting an actual OutOfMemory error. If memory usage is just high, but you never actually run out, you would need to use the method described by Arlith.
Code:
java -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=heapDump.hprof -jar MekHQ.jar
This will launch MHQ as normal, but if you run out of memory while the app runs, it will create a "heapDump.hprof" file. The file will be fairly large (around a gig since that's the memory limit configured), but you can zip it up and it will compress nicely.
Note, this only works if you're getting an actual OutOfMemory error. If memory usage is just high, but you never actually run out, you would need to use the method described by Arlith.