Unable to use JConsole with Tomcat running as windows service

后端 未结 6 1821
暖寄归人
暖寄归人 2020-12-05 05:09

I am running tomcat 6.0.18 as a windows service. In the service applet the jvm is configured default, i.e. it is using jvm.dll of the JRE.

I am trying to monitor thi

6条回答
  •  有刺的猬
    2020-12-05 05:52

    Add the following near the top of your catalina.bat

    set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote ^
        -Dcom.sun.management.jmxremote.port=8086 ^
        -Dcom.sun.management.jmxremote.ssl=false ^
        -Dcom.sun.management.jmxremote.authenticate=false
    

    Stop and restart tomcat (obviously)

    Run jconsole.exe. If your tomcat is running as service, then run jconsole.exe as administrator.

    Select Remote Process and enter localhost:8086

提交回复
热议问题