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