远程监控JVM

 设置tomcat中catalina.sh设置JAVA_OPTS=

 

 
JAVA_OPTS="-server -Xms595M -Xmx595M -Xmn223M -XX:SurvivorRatio=10 -Xss1M -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+UseCMSCompactAtFullCollection -XX:+ExplicitGCInvokesConcurrent -Djava.rmi.server.hostname=192.168.58.128 -Dcom.sun.management.jmxremote.port=1234 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -agentpath:/opt/jprofiler7/bin/linux-x86/libjprofilerti.so=port=8849,nowait"

 

 
在CMD中输入

 或在运行中输入jvisualvm

 

右键添加远程主机,添加JVM连接

 

 

 

 

 

 

 

 
posted @ 2018-04-10 16:33  yye_2010  阅读(136)  评论(0编辑  收藏  举报