This content has been marked as final. Show 4 replies
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