JDK-8371135 : Release Note: New Method MemoryPoolMXBean.getTotalGcCpuTime()
  • Type: Sub-task
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Affected Version: 26
  • Priority: P4
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2025-11-03
  • Updated: 2025-12-13
  • Resolved: 2025-12-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26Resolved
Description
A new method `getTotalGcCpuTime()` has been added to `java.lang.management.MemoryMXBean`, that returns a long result with the accumulated CPU time in nanoseconds for GC related activity.

Although added as a standard API, possible usage may be in conjunction with the `ProcessCpuTime` property defined by the JDK-specific management interface `com.sun.management.OperatingSystemMXBean`.