Extreme Java When vanilla Java is not enough

14Sep/100

Strange bug connecting to JMX

Small tip: if your JMX-enabled application runs on Linux, make sure your /etc/hosts is well configured. Failing to do so will lead to strange remote connection errors on JConsole or similar.

Test your configuration with "hostname -i". It must show server's IP. If it shows 127.0.0.1, change your /etc/hosts file according to this example:

192.168.2.200  myserver     myserver.mydomain
127.0.0.1      localhost    localhost.localdomain
::1            localhost6   localhost6.localdomain6

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)


*

No trackbacks yet.