Garbage Collection Performance Test Program

This chapter provides tutorial notes and example codes on garbage collection performance test programs. Topics include throughput performance calculation; latency performance calculation; operating system interruptions; P99 (99th Percentile) performance; running JVM with highest priority.

GCPerformance.java - GC Performance Test Program

GCPerformance.java - Program Output

Performance Impact of Wait Time

Performance Impact of Object Size

Performance Impact of Chunk Size

Performance Jumps Not Related to GC

Performance Test and System Interruptions

"START /REALTIME" - Run JVM with Highest Priority

GCPerfP99.java - 99th Percentile Performance

GCPerfP99.java - Output Verification

GCPerfP99V2.java - Percentile Performance with Load

GCPerfP99V2.java - Work Load Level

GCPerfP99V2.java - Object Number and Size

Takeaways:

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"

 The Z Garbage Collector (ZGC) - "+XX:+UseZGC"

 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

 References

 Full Version in PDF/EPUB