This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Performance and the fly likes how to setup jconsole to monitor tomcat remotely Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "how to setup jconsole to monitor tomcat remotely" Watch "how to setup jconsole to monitor tomcat remotely" New topic
Author

how to setup jconsole to monitor tomcat remotely

tom chansky
Greenhorn

Joined: Nov 01, 2004
Posts: 28
1) platforms: linux and tomcat-5.5. 20
2) I set the following option in $CATALINA_HOME/bin/catalina.sh:

CATALINA_OPTS="-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=9004 \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false"

3) I've also checked if port 9004 is listening using "netstat -l -t -n -p".

I can monitor tomcat locally using jconsole without any issues. BUT, when I tried to do that remotely from a different machine via "jconsole myhost:9004", it failed to connect.

I also tried to telnet to myhost:9004, and that didn't work either. My firewall is not running. So, is there something that I'm missing???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to setup jconsole to monitor tomcat remotely