jvisualvm connects to remote Tomcat

Add the following under catalina.sh under tomcat of the server:


 JAVA_OPTS="-server -Xms3072m -Xmx3072m -Xmn1152m -XX:PermSize=128M -XX:MaxPermSize=256M -Dfile.encoding=UTF8 
  -Dcom.sun.management.jmxremote  
  -Dcom.sun.management.jmxremote.port=8999
  -Djava.rmi.server.hostname=11.12.112.206  
  -Dcom.sun.management.jmxremote.authenticate=false 
  -Dcom.sun.management.jmxremote.ssl=false"

Note that the address of the remote server -Djava.rmi.server.hostname must be configured, otherwise it may not be connected. After the configuration is complete, restart tomcat .

Start jvisualvm.exe under C:\Program Files\Java\jdk1.7.0_67\bin (my jdk installation directory) in the jdk installation directory of the local PC. Configure remote connections.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324763740&siteId=291194637