Skip to content
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:

  1. Download Visual VM (http://visualvm.java.net/download.html)
  2. 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.
  3. Start Visual VM
  4. Click on File -> Add JMX Connection...
  5. 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.
  6. You should now be able to choose the created the Mobilis Server profile from the left panel of the Visual VM GUI. Done.
Clone this wiki locally