Connection Failed with jconsole and Eclipse locally (macosx)

Thanks to Oli’s Blog entry about the same problem I had when I wanted to monitor my java program locally. The java class was started from within eclipse and then I started jconsole from command line.
jconsole properly showed me my java class but when I pressed connect it told me „Connection failed“ after some seconds.
Solution: add the following to your VM arguments in your eclipse run/debug configuration:

-Djava.rmi.server.hostname=localhost

Dieser Beitrag wurde unter Software-Development abgelegt und mit , verschlagwortet. Setze ein Lesezeichen auf den Permalink.

5 Antworten auf Connection Failed with jconsole and Eclipse locally (macosx)

  1. Konrad sagt:

    This seems to be required on remote monitoring as well. In this case of course localhost should be replaced by the IP. But actually this post helped me noticing it.
    So…thx for that

  2. Pingback: guide casino

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

CAPTCHA-Bild

*