This jcmd option was added by the JVM team to analyze memory used by metaspace and is not useful to customers. Since then we've created better utilities. -Xlog:cds during -Xshare:dump is an example of a better utility that uses a newer better mechanism in the source code.
The output of this jcmd GC.class_stats is lengthy and not well suited to understanding memory used by metaspace objects, nor is it a GC specific facility. It also has some open bugs.
We should deprecate this in 14 and remove in 15.
- csr for
-
JDK-8235335 Deprecate jcmd GC.class_stats command line option
-
- Closed
-
- relates to
-
JDK-8230932 Add support in dcmd for hidden classes
-
- Resolved
-
-
JDK-8234355 Buffer overflow in jcmd GC.class_stats due to too many classes
-
- Closed
-
-
JDK-8232758 The jcmd GC.class_stats produces warning: Ran out of C-heap; undercounted
-
- Closed
-
-
JDK-8235402 Incorrect warning message in jcmd GC.class_histogram because of CDS
-
- Closed
-
-
JDK-8232759 Remove GC.class_stats
-
- Resolved
-
(1 relates to)