- https://gist.github.com/sushanthmangalore/69871cbc87c97cbca67a130469fdee90
- Guide to the Most Important JVM Parameters
- Minimum flags to record GC logs (plus enabling safepoint stats)
- Java 8
-Xloggc:/path/to/gc.log # <Location to write your GC log to> -XX:LogFile=<Location to write your Safepoint log to> -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=< number of log files > -XX:GCLogFileSize=< file size >[ unit ] -XX:+UnlockDiagnosticVMOptions -XX:+PrintGCDetails -XX:+PrintTenuringDistribution -XX:+PrintGCCause -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintSafepointStatistics -XX:+LogVMOutput -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=./java_pid<pid>.hprof -XX:+CMSClassUnloadingEnabled ### Pre-Java-8 -XX:+UseGCOverheadLimit # Some more, check before using -XX:OnOutOfMemoryError="< cmd args >;< cmd args >"
- Java 11 and above
-Xlog:gc=[warning|debug|error]:file=/path/to/gc.log:time,uptime,level,tags:filecoint=[n],filesize=[n]m -XX:+UnlockDiagnosticVMOptions -XX:LogFile=<Location to write your Safepoint log to> -XX:+LogVMOutput -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=./java_pid-%p.hprof -XX:+UseGCOverheadLimit -XX:FlightRecorderOptions=stackdepth=[nn]
See java command, arguments/parameters for Java 9 to find equivalents for Java 9 flags and java command, arguments/parameters for Java 11 for Java 11 flags.
- Various collection of JVM flags - https://gist.github.com/benve/f350e9478a510c77d37d
- Recommended Linux Configuration for Running Docker Containers - https://gist.github.com/jason-riddle/d3c78dc4e6615ac30c60f9f1b807e6d2
- Performance capturing using Flame Graphs - https://gist.github.com/kayousterhout/7008a8ebf2babeedc7ce6f8723fd1bf4
- JIT Compiler Tuning - https://gist.github.com/jreuben11/b258af685b03983cdfb28ce565e1bc6e
- Repro steps for G1 + JIT segfault - https://gist.github.com/punya/6287943
- Java 8 options (mostly Oracle docs) - https://gist.github.com/elifarley/217226b2d13a3cf0770d
- Random Java Performance Tuning scripts - https://gist.github.com/schnell18/225d8ddc3006204a67b4
- Example of sbt launch script for akka benchmarks - https://gist.github.com/patriknw/2006106
- Tuning Scala - https://gist.github.com/retronym/86ec6ad9ccd2c22f6148
- Tuning a Web server - https://gist.github.com/yamingd/6b632c38992a582372b6
- twitter: @theNeomatrix369
- github: http://github.com/neomatrix369/
- bitbucket: http://bitbucket.com/neomatrix369/
- linkedin: http://uk.linkedin.com/pub/mani-sarkar/71/a77/39b
- slideshare: http://www.slideshare.net/neomatrix369/
- lanyrd: http://lanyrd.com/profile/neomatrix369/