Set CATALINA_OPTS as indicated in the startup file in tomcat
CATALINA_OPTS=-Djava.awt.headless=true -Xmx128M -server -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9091 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost
Here the port number is not a server. Specify a different port number, for example, 9091.1099, etc. And the host name, for example localhost or 198.168.128.72
Running jconsole as
jconsole 198.168.128.72:9091
here the port number is not the server port number. This is the JMX port specified in CATALINA_OPTS .
Bhaskar
source share