Java options for taking heap dump on Out of memory
javaoptions="-XX:MaxPermSize=4096m -Xms1024m -Xmx4096mm -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger -Dmail.mime.applefilenames=true -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/heap/"
Add these two options and start jetty, when you want to take heap dump on out of memory exception:
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/opt/heap/"
javaoptions="-XX:MaxPermSize=4096m -Xms1024m -Xmx4096mm -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger -Dmail.mime.applefilenames=true -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/heap/"
Add these two options and start jetty, when you want to take heap dump on out of memory exception:
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/opt/heap/"
No comments:
Post a Comment