This content has been marked as final. Show 4 replies
Is Tomcat running with the same JVM as the other apps? How did you start it?
You should be able to do the same thing with Tomcat that you can do with other apps.
yes, Tomcat is running with same JVM as other apps. Tomcat is started via the tomcat task tray icon or as service when windows boots.
If you are running tomcat under jsvc, which it looks like you are, jps will not find it in recent updates to the jdk : eg jdk 16_u23
visualvm uses jps to find java processes.
If you are not running jsvc, ignore the rest of this post.
A work around is to set up tomcat for jmx and then make a jmx connection to the port configured for tomcat
If you are not already running JMX already add this:
-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=9090 -Dcom.sun.management.jmxremote.authenticate=false
to you CATALINA_OPTS to the parameters used to start jsvc (eg in /etc/init.d/tomcat6)
(if you are not running visualvm on the same machine as tomcat you will want to enable authentication: see the tomcat site for details)
and restart tomcat
Once you have JMX running:
in jvisualvm add JMX connection and supply port you configured tomcat with by creating a new JMX connection
oops, I did not read the original post carefully. It looks like you are doing all of this.