Friday, June 27, 2014

Parameters regarding JAVA memory tunning

This is cheat sheet regarding JAVA memory tunning.
Please refer to <How to Tune Java Garbage Collection> for details.

JVM Memory Tuning parameters

ParameterDescription
-Xms1000mHeap area size when starting JVM
-Xmx1000mMaximum heap area size
-XX:NewRatio=2Ratio of New area and Old area
-XX:NewSize=1000000New area size
-XX:SurvivorRatio=2Ratio of Eden area and Survivor area
-XX:PermSize=1000000Permanent area size
-XX:MaxPermSize=1000000Max permanent area size
-XX:+HeapDumpOnOutOfMemoryErrorCreate heap dump on OOM error
-XX:HeapDumpPath=/tmp/a.logHeap dump location.
-XX:OnOutOfMemoryError=/killparent.shActions after an OOM occurs.

Enable Verbose GC log

ParameterDescription
-verbose:gcPrint each GC.
-XX:+PrintGCDetailsPrint additional information.
-Xloggc:/tmp/gc.logLog location of GC
-XX:+PrintGCTimeStampsAdd a time stamp at the start of each collection.

1 comment:

  1. This is a useful resource for developers looking to improve Java application performance. Understanding memory tuning parameters can help optimize resource usage, troubleshoot issues, and maintain more stable applications.

    food delivery service carmel indiana

    ReplyDelete

Popular Posts