Tag: visualgc

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