1、下载jrockit-jdk1.6.0_45-R28.2.7-4.1.0-windows-ia32.exe
2、安装好Jrokit后, 设置JAVA_HOME指向Jrokit安装目录,在cmd下输入:java -version
java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
BEA JRockit(R) (build R27.5.0-110_o-99226-1.5.0_14-20080528-1505-windows-ia32, compiled mode)
然后配置打开Tomcat的bin目录下catalina.bat文件
找到:
set JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%
并在其后添加:
-Xmanagement -Dcom.sun.management.jmxremote.port=7091 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
修改完成后,如下:
set JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER% -Xmanagement -Dcom.sun.management.jmxremote.port=7091 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
接着,运行startup.bat启动Tomcat
可以看到下面的语句:
[JRockit] Management server started on port 7091, ssl=false, authenticate=false.
2010-8-20 10:32:15 org.apache.catalina.core.AprLifecycleListener init