wood burning stoves 2.0*
The moose likes Performance and the fly likes JCONSOLE : how to run for remote tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "JCONSOLE : how to run for remote tomcat" Watch "JCONSOLE : how to run for remote tomcat" New topic
Author

JCONSOLE : how to run for remote tomcat

Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
I am running tomcat, on a remote machine, but I can't seem to connect to the remote tomcat.
It works fine for local java program, but doesnt work either for tomcat on local machine or remote machine.

For local tomcat, I set set CATALINA_OPTS=%CATALINA_OPTS% -Dsun.io.useCanonCaches=false -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9007
bin/catalina.bat and then I used jconsole to connect to localhost, 9007
Viresh Jain
Greenhorn

Joined: Jun 14, 2005
Posts: 3
i have the same problem. please let me know if sopmeone has any solution for this.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
I used jconsole to connect to localhost, 9007

Bingo - the remote machine is NOT localhost. Only your local program is running on localhost. Use the network IP address of the Tomcat server machine.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JCONSOLE : how to run for remote tomcat
 
Similar Threads
JMX with Tomcat
help with jconsole
JMX
Tomcat monitoring
how to setup jconsole to monitor tomcat remotely