On the Sun JVM, you can tell it to perform a heap dump automatically when an out-of-memory error occurs using these arguments:
-XX:-HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=c:\oomdump.hprof
There are many more Java HotSpot VM options.
... until the collector arrives ...
On the Sun JVM, you can tell it to perform a heap dump automatically when an out-of-memory error occurs using these arguments:
-XX:-HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=c:\oomdump.hprof
There are many more Java HotSpot VM options.