- Throughput: The amount of work done by an application as a ratio of time spent in GC.
‑XX:GCTimeRatio=99
means 99% of time spent on application computation, 1% spent in GC
- Latency: The time taken by systems in responding to events which is impacted by pauses introduced by GC. Target latency with the flag
‑XX:MaxGCPauseMillis=<n>
- Memory: The amount of memory used to store state. Maximum heap size is set via the flag
–Xmx<n>
(Eden -> Survivor) -> Tenured -> Perm (deprecated)
TLAB
: Thread Local Allocation Buffer (mechanism through which threads request memory). When a TLAB
is filled, a thread requests a new one from Eden
.
When Eden
is filled, a minor collection commences. During minor collection, all live objects are copied over to a Survivor
space or promoted to Tenured
space.
‑XX:+PrintGCApplicationStoppedTime
: Prints out the time needed to bring all threads to a safe point for Stop-The-World event
– XX:MaxTenuringThreshold
: Threshold for collections survived before being promoted to Tenured