Unable to use JConsole with Tomcat running as windows service

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

    There is still a rather simple way to connect JConsole to Java process started as Windows Service using the local mode which I discovered here.

    Basically it says that in order to connect to Java process launched as a Windows Service you need to launch JConsole as a Windows Service (you can do it using windows native api or using any wrapper like yajsw.)

    By the way, this will free you from restarting the Java Process which was critical for me.

提交回复
热议问题