Unable to use JConsole with Tomcat running as windows service

Kees de Kooter :

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 this application with JConsole but cannot connect to it locally. I added the parameter -Dcom.sun.management.jmxremote (which works when starting tomcat with the start.bat script). But the jvm does not seem to pick up the parameter.

Ed Thomas :

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.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Kill tomcat service running on any port, Windows

Tomcat fails to load webapp when it is running as a windows service

Problems with Tomcat 8 running as a service on Windows Server 2008

Can I use guards to chef if a windows service is running?

Windows - running command as a service

How to pass a system property to a web application hosted in Tomcat 7 running as a Windows Service?

Running a Windows Service as a statefull service in Service Fabric

Passing JVM arguments to Tomcat when running as a service?

Passing JVM arguments to Tomcat when running as a service?

ClassNotFoundException while running web service with tomcat 7?

Unable to connect to tomcat running in Docker (Connection refused)

Why am I unable to operate on a Windows service or edit its registry entries despite me running as SYSTEM?

Unable to create a new folder in Azure file share by a Windows service running in Azure VM

Always Running Threads on Windows Service

SolrCore is loading running as Windows Service

Determine if a running Windows Service is functioning

Running CygWin application as a Windows Service

Windows Service is Running but not executing code

Unable to access service running in docker swarm cluster

Unable to use a decorator into a NestJS service

Running jsp files with Apache tomcat on windows

Getting the Process id of Tomcat running in Eclipse on Windows

Running Tomcat from windows 10 bash shell

Tomcat 6.0.18 service will not start on a windows server

Setting default locale for Tomcat Service in Windows XP

Apache tomcat7 as windows service

Unable to use resources in production mode with tomcat

Running Tomcat 9 with SpringBoot-App as a service with Ubuntu 18.04

Can I get Tomcat running as a service to dump heap?