Reputation: 396
I have written a Java service to run on a server.
I used JMX
and jconsole
to monitor the service from myPC.
In order to connect, I have to copy and paste the following link into jconsole
:
service:jmx:rmi://192.168.5.207:9999/jndi/rmi://192.168.5.207:9999/jmxrmi
After quitting jconsole
, If I want to reconnect, I have to copy and paste the link again.
Is there a way to save the link in jconsole
so that I can reuse it?
Or can you suggest another remote monitor tool.
Upvotes: 2
Views: 2070
Reputation: 3128
I think, you will not be able to save URLs in JConsole. You can use VisualVM instead. It is very good tool which has all the functionality as JConsole with some very good extra features.
Upvotes: 7
Reputation: 5811
You can specify the URL as program argument:
jconsole [ options ] [ pid | [ host:port ]]
pid
Process ID of a local Java VM that was started with the system property com.sun.management.jmxremote. The Java VM must be running with the same user ID as the user ID running jconsole. See JMX Monitoring and Management for details.
host:port
Name of the host system on which the Java VM is running and the port number specified by the system property com.sun.management.jmxremote.port when the JVM was started. See JMX Monitoring and Management for details.
http://docs.oracle.com/javase/1.5.0/docs/tooldocs/share/jconsole.html
Upvotes: 4