1. 在Tomcat的Overview视图下点击Open launch configration 进入 Edit launch configuration properties对话框.
2. 点击Arguments选项卡, 在VM arguments中加入
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.port=6789
-Dcom.sun.management.jmxremote
3. 在Eclipse工程中对index.html 右击选择Run/Debug As On Server或直接启动Tomcat(Tomcat 下包含项目工程)
4.启动JConsole, 远程选项页中输入localhost:6789, 点击连接.
5.JConsole显示JVM工作情况.
Author:David
Mail:xiang.okay@gmail.com