jconsole remote connection failed

雖然這問題很早就遇到過了,但每次都忘記,這次給他好好記下來。
如果要間看遠端電腦的jvm,就必須加入一些參數,這裡列出不用認證,也沒有ssl的設定,port設定為9005:
-Dcom.sun.management.jmxremote.port=9005
-Dcom.sun.management.jmxremote.ssl=false

-Dcom.sun.management.jmxremote.authenticate=false

啟動後,如果還是無法連上遠端的電腦,執行『hostname -i』,如果發現是『127.0.0.1』,則修改/etc/hosts,改為本機真實的ip。

留言

熱門文章