Wednesday, 27. January 2010
"Connection Failed" with jconsole
Some time ago I had problems with the jconsole on my Mac. Each time I tried to connect to a Java application the jconsole printed "Connection Failed: Retry?". This happened not at home, but outside (when I was connected via UMTS). So it seems to be a network problem.

Today I found on this Wiki entry about Monitoring Tomcat with JMX the solution for this problem. I have to add the property

-Djava.rmi.server.hostname=localhost

as parameter to the JavaVM. And voilá - I can connect now to my Java program.

... link (0 Kommentare)   ... comment