Skip to content

Instantly share code, notes, and snippets.

@nurkiewicz
Created March 30, 2011 07:08
Show Gist options
  • Save nurkiewicz/893986 to your computer and use it in GitHub Desktop.
Save nurkiewicz/893986 to your computer and use it in GitHub Desktop.
Useful JVM options
-verbose:gc
-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-XX:+PrintGCDateStamps
-XX:+PrintHeapAtGC
-XX:+TraceClassLoading
-XX:+TraceClassUnloading
-XX:+PrintTenuringDistribution
-Xloggc:gc.log
-XX:+PrintGC
-XX:+PrintGCApplicationStoppedTime
-XX:+PrintPromotionFailure
-XX:PrintFLSStatistics=1
-XX:NewRatio=2
-XX:SurvivorRatio=6
http://stackoverflow.com/questions/9053144
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath="/tmp"
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=5005
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-XX:PermSize=120M
-XX:MaxPermSize=256M
-Xms500M
-Xmx800M
-Xrunjdwp:transport=dt_socket,address=8778,server=y,suspend=n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment