JDK-6311411 : SA: jmap -histo reports wrong histogram with CMS
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 5.0u4
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris
  • CPU: sparc
  • Submitted: 2005-08-16
  • Updated: 2011-02-16
  • Resolved: 2007-01-25
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.
Other JDK 6 JDK 7
5.0u12 b01Fixed 6u2Fixed 7Fixed
Description
jmap -histo reports wrong histogram with CMS. It misses portion of heap graph in histogram computation when used with CMS. More details are in "Comments" section.

Comments
EVALUATION Webrev of the fix: http://jpsesvr.sfbay.sun.com:8080/ctetools/html/ViewDetail.jsp?index=2023
17-01-2007

EVALUATION Walking freechunks when VM is not necessarily at safepoint (therefore we may be walking non-parseable heap) could be the root cause. We will have evaluate whether we can account for such freechunks/objects in some way. May be, histogram may print "X" bytes of allocated but unknown Java objects.
08-06-2006