forked from mobilis/mobilis
-
Notifications
You must be signed in to change notification settings - Fork 0
Server Monitoring
ubuntudroid edited this page Apr 16, 2013
·
1 revision
Monitoring the performance of the Mobilis Server is no big deal. With JMX (Java Management Extensions) you can monitor (also remotely) pretty every Java application with a compatible viewer like Visual VM. Here is how:
- Download Visual VM (http://visualvm.java.net/download.html)
-
Start the Mobilis Server using the following terminal command:
java -Djava.rmi.server.hostname=[hostname] -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=[port]
-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false mobilisserver.jar
hostname is usually the DNS name of the system where the Mobilis Server is running.localhost
should also be fine as well as an IP (not tested). port defines the port where JMX compatible applications may bind to the Mobilis Server for monitoring. - Start Visual VM
- Click on File -> Add JMX Connection...
- Fill out the connection data. The only mandatory field is the Connection field. You should enter something like this:
service:jmx:rmi:///jndi/rmi://[hostname]:[port]/jmxrmi
hostname and port should be the same as you defined them in the Mobilis Server command line parameters in step 2. - You should now be able to choose the created the Mobilis Server profile from the left panel of the Visual VM GUI. Done.