Can't connect Tomcat via JMX

Posted by Icarokun on Server Fault See other posts from Server Fault or by Icarokun
Published on 2011-11-17T16:08:40Z Indexed on 2012/10/28 17:03 UTC
Read the original article Hit count: 177

Filed under:
|
|

I couldn't connect to one Tomcat server via JMX in a Linux virtual machine.

There was no firewall running. All seemed ok. By searching on the web I found out that I have to use the -Djava.rmi.server.hostname property to fix it. It worked, but I don't understand why.

My machine has five Tomcat servers running, all of them have JMX enabled in consecutive ports (8008, 8018, 8028...), all of them have the same configuration and only one of them had this issue connecting JMX.

No firewall, no -Djava.rmi.server.hostname property in any Tomcat.

I understand the problem, but I don't understand why four of my Tomcat servers worked and one of them not. Why is this?

© Server Fault or respective owner

Related posts about linux

Related posts about tomcat