Virtual VM is a tool introduced after JDK6 Update7, with the tendency to assemble other JDK tools, the current version of JDK7 has supported most of the monitoring functions, as if the memory stack could not be tracked in real-time to locate memory leaks like Jprofile and Youkit.
For remote application connections, Virtual VMS are available in two ways: Jmx and JSTATD, which are described below for the configuration of the two types of connections.
Locate the Jmxremote.password.template file under Jre/lib/management in the JDK directory on the remote server, and then copy it as Pwd.file point to the file jmx.pwd file
such as: Jmx JMX
Adding JVM Parameters
Java_options= "${java_options}-dcom.sun.management.jmxremote.port=6789"
java_options= "${java_options}-dcom.sun.management.jmxremote.pwd.file= /jmx/jmx.pwd "
Java_options= "${java_options}-dcom.sun.management.jmxremote.ssl=false"
Java_options= "${java_options}-dcom.sun.management.jmxremote.authenticate=false"
After you finally restart the remote server app, you are ready to connect using Java VIRTUALVM.
Create a Java.policy file on the remote server, such as:
/tmp/jstatd.java.policy Grant codebase "file:${java.home}/. /lib/tools.jar "{permission java.security.AllPermission;};
To start the JSTATD process on a remote server:
This article from "Jixian" blog, reproduced please contact the author!
JAVA VIRTUALVM Remote Monitoring configuration