... until the collector arrives ...

This "blog" is really just a scratchpad of mine. There is not much of general interest here. Most of the content is scribbled down "live" as I discover things I want to remember. I rarely go back to correct mistakes in older entries. You have been warned :)

2008-11-14

JVM Heap Dump Options

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.

Blog Archive