...
- Java Tuning White Paper
- A general overview of tuning strategies for the JVM.
- Tuning Garbage Collection with Java 5
- Details about the GC options for Java 5.
- Understanding Concurrent Mark Sweep Garbage Collector Logs
- Provides good explanations of all that info the GC logs. The tool https://github.com/chewiebug/GCViewer provides a great visual representation and summary of the data from the GC log file.
- The PrintCompilationFlag
- Not covered here but usefull to learn what the JIT is doing on your system (or if you have HotSpot core dumps)
...
Example gc log output with PrintTenuringDistribution enabled:
No Format |
---|
1096.789: [GC 1096.789: [ParNew
Desired survivor size 86232268 bytes, new threshold 6 (max 12)
- age 1: 50754696 bytes, 50754696 total
- age 2: 12147696 bytes, 62902392 total
- age 3: 12295552 bytes, 75197944 total
- age 4: 6537136 bytes, 81735080 total
- age 5: 2435944 bytes, 84171024 total
- age 6: 3013488 bytes, 87184512 total
- age 7: 627368 bytes, 87811880 total
- age 8: 999536 bytes, 88811416 total
- age 9: 924656 bytes, 89736072 total
- age 10: 1811480 bytes, 91547552 total
: 554848K->89528K(561792K), 0.5317388 secs] 607743K->146164K(1217152K) icms_dc=18 , 0.5326526 secs]
|
...