Friday, March 18, 2011

Configuring Heap dump on Out of Memory Error

You can configure the JVM to make a Heap dump when encountering an Out of Memory error. You can also configure an optional directory where the dump file will be created. Use the following VM arguments to create a dump file in C:\dumps when jvm goes out of memory…

-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/dumps

No comments:

Post a Comment