[英]JMX parameters correctly passed but couldn't connect using jconsole
我已經在Java程序中傳遞了以下jmx參數,並將其部署在某些遠程計算機上。
-Dcom.sun.management.jmxremote.port=5001
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
仍然當我嘗試使用jconsole中的host:port連接到主機時,它將我重定向到InsecureConnection,然后它不連接。
加
-Dcom.sun.management.jmxremote.host=<hostname>
-Dcom.sun.management.jmxremote.rmi.port=<pornNum>
當您僅指定-Dcom.sun.management.jmxremote.port
它將rmi注冊表綁定到該端口。 該注冊表包含遠程對象,您應該添加-Dcom.sun.management.jmxremote.rmi.port
以指定在何處綁定該遠程對象。 否則,將使用隨機端口,如果您有防火牆,那將不是很好。 您可以查看sun.management.jmxremote.ConnectorBootstrap#startRemoteConnectorServer
了解更多詳細信息
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.