Enable VisualVM for remote monitoring of Java

Step 1: get jstatd running.

If jstatd is not running,  create a file called jstatd.all.policy with the following contents:

grant codebase "file:${java.home}/../lib/tools.jar" { permission java.security.AllPermission;};

Start jstatd as follows:

nohup jstatd -J-Djava.security.policy=/path/to/your/jstatd.all.policy &

Step 2: Start Remote jvisualvm

 

/usr/java/jdk1.7.0_25/bin/jvisualvm

 

Screenshot-Java VisualVM

OVM Console Broken by Java 7

Make sure you are using Java 6 when trying to access your OVM Virtual Machines. Java 7 seems to have broken something. Isn’t it nice that Oracle makes java and breaks its own products?

Use this download link for Java 6

cd /usr/lib64/mozilla/plugins

ln -s /usr/java/jre1.6.0_37/lib/amd64/libnpjp2.so .

restart firefox

got “about:plugins” and make sure it is enabled.

now choose console from OVM open file as /usr/java/latest/java/bin/javaws

alwasy