tomcat远程调试和jmx监控

1、开启远程调试接口(catlina.bat)

SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false

 

2、开启jmx监控(catlina.bat)

SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false

 

3、设置JAVA_HOME(catlina.bat)

set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_67

set JRE_HOME=C:\Program Files (x86)\Java\jdk1.7.0_67\jre

 

4、设置java参数(catlina.bat)

set JAVA_OPTS=-Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=512m -XX:-UseGCOverheadLimit -XX:+UseConcMarkSweepGC -

 

5、修改tomcat显示名(catlina.bat)

     if "%TITLE%" == "" set TITLE=xxx_server

你可能感兴趣的:(tomcat)