Jconsole cannot connect

前端 未结 4 2475
被撕碎了的回忆
被撕碎了的回忆 2021-02-19 23:37

I am using VNC to connect to a server. I am able to VNC into the server, and open Jconsole, but cannot get it to connect to my process whether I include the PID or try connectin

4条回答
  •  清歌不尽
    2021-02-19 23:45

    Remote JConsole

    Add the following parameters to your java Application and run it

    -Djava.rmi.server.hostname=DOMAIN_PUBLIC_URL  -Dcom.sun.management.jmxremote.port=PORTNUMBER -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
    

    DOMAIN_PUBLIC_URL - Like your instance public address

    PORTNUMBER - 9955

    Launch jconsole in your ubuntu from terminal command and go to remote connection and paste the DOMAIN_PUBLIC_URL and PORT and Connect it without username and password like insecure connection.

    Make sure to expose the port number on your AWS Server Instance.

提交回复
热议问题