Java Memory Management Performance Analysis

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Old Generation Analysis

Old generation occupancy after full collections. This is the primary indicator of memory leaks.

gc event-type:FULL_COLLECTION -o old-after, old-capacity, heap-capacity ./gc.log  > gc.csv

Garbage Collection Time Analysis

Full collection frequency, time and CPU usage:

gc event-type:FULL_COLLECTION -o collection-time ./gc.log > full-collection-time.csv

New generation collection frequency, time, and CPU usage:

gc event-type:YOUNG_GENERATION_COLLECTION -o collection-time ./gc.log  > new-generation-collection-time.csv

Leak Analysis

YourKit Memory Snapshot Comparison