JVM Garbage Collection Logging

This chapter provides tutorial notes and example codes on JVM options for garbage collection logging. Topics include a summary of logging options; examples of log messages for '-XX:+PrintGCDetails', '-XX:+PrintGCDateStamps', '-XX:+PrintGCDateStamps', 'PrintGCApplicationStoppedTime', etc.

Garbage Collection Demo Program

Garbage Collection Logging Options

"-XX:+PrintGC" - GC Logging Option for Short Messages

"-XX:+PrintGCDetails" - Option for Detailed GC Messages

"-XX:+PrintGCDateStamps" - Calendar Timestamp on GC Messages

"-XX:+PrintGCApplicationStoppedTime" - Application Pause Durations

"-XX:+PrintGCApplicationConcurrentTime" - Application Running Durations

"-XX:+PrintHeapAtGC" - Print Heap Summary per GC

"-XX:+PrintTenuringDistribution" - Tunuring Distribution

"-XX:+PrintReferenceGC" - Reference Counts per GC

"-XX:+PrintFlagsFinal" - Print JVM Options


Table of Contents

 About This Book

 Heap Memory Area and Size Control

JVM Garbage Collection Logging

 Introduction of Garbage Collectors

 Serial Collector - "+XX:+UseSerialGC"

 Parallel Collector - "+XX:+UseParallelGC"

 Concurrent Mark-Sweep (CMS) Collector - "+XX:+UseConcMarkSweepGC"

 Garbage First (G1) Collector - "+XX:+UseG1GC"

 Object References and Garbage Collection

 Garbage Collection Performance Test Program

 Performance Tests on Serial Collector

 Performance Tests on Parallel collector

 Performance Tests on Concurrent collector

 Performance Tests on G1 collector

 Garbage Collection Performance Test Summary

 Outdated Tutorials


 Full Version in PDF/EPUB