Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6346039
Votes 0
Synopsis Improve jmap -histo (and maybe -heap) for use with running applications
Category java:serviceability
Reported Against b60
Release Fixed mustang(b67)
State 10-Fix Delivered, request for enhancement
Priority: 3-Medium
Related Bugs 6306981 , 6360345
Submit Date 04-NOV-2005
Description
The jmap utility currently uses the attach API to implement the -dump option. It might be  customer  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.
Posted Date : 2005-11-04 08:44:57.0

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 :)
Posted Date : 2005-12-08 18:57:34.0
Work Around
N/A
Evaluation
See suggested fix.
Posted Date : 2005-11-10 04:06:19.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang