Skip to content

Commit

Permalink
util/util-jvm: Add gc pause stats for all collectors
Browse files Browse the repository at this point in the history
Problem

Currently we only have gc pause stats for the ParNew collector, but
we'd like to be able to see this information for the G1 pools.

Solution

Add collection duration stats for all collector pools. Keep the jvm/gc/eden/pause_msec
stat for compatibility, but this will be the same as jvm/gc/ParNew/pause_msec.

Differential Revision: https://phabricator.twitter.biz/D1176049
  • Loading branch information
jcrossley authored and jenkins committed Oct 11, 2024
1 parent 93f8679 commit 1acacdf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/src/sphinx/metrics/Jvm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@ and tenuring threshold (`jvm/tenuring_threshold`).
A gauge of the number of the total number of collections that have occurred.

**jvm/gc/eden/pause_msec**
A stat of the durations, in millseconds, of the eden collection pauses.
A stat of the durations, in millseconds, of the eden collection pauses. This is equivalent
to jvm/gc/ParNew/pause_msec.

**jvm/gc/{gc_pool_name}/msec**
A gauge for the named gc pool of the total elapsed time garbage collection pool
doing collections, in milliseconds. Names are subject to change.

**jvm/gc/{gc_pool_name}/pause_msec**
A stat for the durations, in milliseconds, of the collection pauses for the named gc pool.

**jvm/gc/{gc_pool_name}/cycles**
A gauge for the named gc pool of the total number of collections that have occurred.
Names are subject to change.
Expand Down

0 comments on commit 1acacdf

Please sign in to comment.