• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JCONSOLE : how to run for remote tomcat

 
Aruneesh Salhotra
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic