JConsole and Tomcat service - how?

Hi,

I know how to connect to a Tomcat 5 started as an application.

But how to connect to a Tomcat 5 started as a service on WinXP?

I edited the <tomcat>\bin\service.bat and added the "-Dcom.sun.management.jmxremote" option to the JVMOptions. But when I start JConsole I can't see the Tomcat java process.

Do you know how?

Michael

[373 byte] By [docwarea] at [2007-11-26 21:25:49]
# 1
Is TMP variable on your machine set to a directory on a NTFS drive?For more information please look at: http://java.sun.com/javase/6/docs/technotes/guides/management/faq.html#win1
kirill.shirokova at 2007-7-10 3:06:12 > top of Java-index,Core,Monitoring & Management...
# 2

Thanks, I checked that FAQ already before posting. None of the hints apply.

In the meantime I found a solution in another posting

Starting JVM with

- Dcom.sun.management.jmxremote

-Dcom.sun.management.jmxremote.port=8086

-Dcom.sun.management.jmxremote.ssl=false

-Dcom.sun.management.jmxremote.authenticate=false

and connection to it from JConsole with port

Michael

docwarea at 2007-7-10 3:06:12 > top of Java-index,Core,Monitoring & Management...