JDK-6479360 : RFE: PrintClassHistogram improvements
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2006-10-06
  • Updated: 2019-12-04
  • Resolved: 2014-01-29
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
Related Reports
Relates :  
Relates :  
Description
Requested improvements for PrintClasshistogram:

1) print loaded classes grouped by class loader
2) distinguish between Class Object and instances
of the class (they have the same name)

Comments
Will not backport this, closing as WNF
29-01-2014

The JDK8/hs25 version is based on NPG code. Backport to JDK7 requires extensive changes.
26-03-2013

The fix is committed into jdk8: http://hg.openjdk.java.net/jdk8/jdk8/hotspot/rev/16fb9f942703
18-03-2013

Sample outputs jcmdfoo -help > ver_010_help.txt jcmdfoo > ver_010_hello.txt jcmdfoo -csv > ver_010_hello.csv jcmdfoo -all > ver_010_hello_all.txt jcmdfoo -csv -all > ver_010_hello_all.csv A list of all the columns and their meanings are in the attached file ver_010_help.txt.
17-01-2013

The PrintClassHistogram option is not easily accessible by the user and cannot be easily changed once the VM is started. Also, it is not easy to be used to print out class information "at the right time". Instead, I propose to add a new "jcmd" diagnostic command to print out a superset of the information that's currently printed by PrintClassHistogram. See attachment: class-stats-proposal.2.txt
02-01-2013

Proposal: Dumping of Extended Class Size Statistics v0.2 - 2013/01/01 Ioi Lam (ioi.lam@oracle.com)
02-01-2013