JDK-8014659 : NPG: performance counters for compressed klass space
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs25
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-05-15
  • Updated: 2017-05-17
  • Resolved: 2013-08-20
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 8 Other
8Fixed hs25Fixed
Description
JDK-8004172 added performance counters for all of metaspace. Since compressed klass space is of fixed size (similar to the old permgen), there should be separate counters for compressed klass space because a user is likely to be interested in this data.

Therefore, the following new performance counters should be added:
- sun.gc.compressedclassspace.maxCapacity
- sun.gc.compressedclassspace.minCapacity
- sun.gc.compressedclassspace.capacity
- sun.gc.compressedclassspace.used

in addition to the already existing counters which covers all of metaspace (compressed klass space + all other metadata):
- sun.gc.metaspace.maxCapacity
- sun.gc.metaspace.minCapacity
- sun.gc.metaspace.capacity
- sun.gc.metaspace.used

The tool jstat should also be updated to display these new performance counters.