Unable to use JConsole with Tomcat running as windows service

后端 未结 6 1946
暖寄归人
暖寄归人 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:45

    There's a nice GUI to edit the options, no need to muck around in the registry.

    Open up the C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\tomcat6.exe (or just double-click on the monitor icon in the task bar). Go to the Java pane, add the following to the list of arguments, and restart Tomcat.

    -Dcom.sun.management.jmxremote
    -Dcom.sun.management.jmxremote.port=8086
    -Dcom.sun.management.jmxremote.ssl=false
    -Dcom.sun.management.jmxremote.authenticate=false
    

    Then you can connect with JConsole or the newer VisualVM.

提交回复
热议问题