JDK-6881159 : RFE: VisualVM should support remote jstad RMI registry on non-default port
  • Type: Enhancement
  • Component: tools
  • Sub-Component: visualvm
  • Affected Version: 6u13
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2009-09-11
  • Updated: 2011-04-27
  • Resolved: 2009-11-13
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
6u18 teamFixed
Related Reports
Relates :  
Description
The scenario is as following for this RFE request.

Customer like to monitor remote hosts, running jstatd at a non-default port.
The default port for jstatd is 1099. So far at this port customer have running 
JBOSS instances on their default port for JNP which is the same 1099.
It is possible to start jstatd at another port, but VisualVM can not monitor longer
these hosts running a jstatd at another port.

The request is. Customer need VisualVM, when a new RemoteHost will be created to monitor,
that VisualVM will not only ask for this remote hosts IP but ask for the TCP port to connect as well.
The default can be still 1099, but it should be changeable.

At attachment class com.sun.jvmstat.tools.visualgc.VisualGCView is modified, contains a suggested
fix by Andreas Loew, handling the customer onsite.
See modified sources and JARs/NBM (for simplicity, the NBM is now unsigned) with the 
suggested changes. 
When using it, the only change needed to make it work is in visualvm.conf:

default_options="-J-Xms24m -J-Xmx192m -J-Dnetbeans.accept_license_class=com.sun.tools.visualvm.modules.startup.AcceptLicense -J-Dsun.jvmstat.perdata.syncWaitMs=10000 -J-Dcom.sun.tools.visualvm.jvmstat.remote.port.<host>=<port>"

e.g.

-J-Dcom.sun.tools.visualvm.jvmstat.remote.port.optiquad=55555

Comments
EVALUATION Once VisualVM 1.2 is part of JDK 6 update release, this RFE can be closed.
27-10-2009