The amazing new heap dump feature in JDK 1.4.2_12

This is great feature if it works. I was currently debugging a OutOfMemory exception and I wish I had known about this.

https://weblogs.sdn.sap.com/pub/wlg/3754

If an application runs with -XX:+HeapDumpOnOutOfMemoryError then the heap will be dumped to a file when OutOfMemoryError is first thrown.
Another option can be used to configure the name/location of the dump if required (default is java_pid<pid>.hprof in the working directory).

Follow up: https://weblogs.sdn.sap.com/pub/wlg/3800

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s