JDK-6346039 : Improve jmap -histo (and maybe -heap) for use with running applications
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,solaris_9
  • CPU: generic,sparc
  • Submitted: 2005-11-04
  • Updated: 2010-04-02
  • Resolved: 2006-01-07
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 6
6 b67Fixed
Related Reports
Duplicate :  
Relates :  
Description
The jmap utility currently uses the attach API to implement the -dump option. It might be good to extend jmap so that it uses the same mechanism for -histo (and maybe -heap). This will make the utilities more usable for running applications on Solaris/Linux. Also it means that the options will become available on Windows.

At this time there is little motive to change the -permstat and -finalizerinfo options. If needed, the developer can obtain a heap dump and use jhat/OQL to do more powerful queries. Over time (post-mustang) we can look to update  these other options too.
Also, output from jmap options contains a typo.

j2se/src/share/classes/sun/tools/jmap/JMap.java

System.out.println("    jmap [option] [server_id@]<remote server IP or hostname>");
	    System.out.println("	(to connect to remove debug server)");


remove needs to be remote :)

Comments
EVALUATION See suggested fix.
2005-11-10

SUGGESTED FIX Alan has -histo implemented but doesn't have the cycles to complete the testing and process needed to get this in. The webrevs are here: http://sunweb.ireland/~ab23780/histo-hs/webrev/index.html http://sunweb.ireland/~ab23780/histo-sdk/webrev/index.html Jim has offered to bring this to the finish line.
2005-11-04