需要添加如下參數(shù):
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8086
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
啟動(dòng)JConsole以后會(huì)要求選擇連接,切換到Remote標(biāo)簽頁(yè)port填8086就可以了
?
舉例:
catalina.bat中:
set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8086 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
(本文也發(fā)表于http://www.ondev.net/story/show/49,轉(zhuǎn)載請(qǐng)注明出處)
posted on 2008-08-15 08:50
幻 閱讀(1742)
評(píng)論(1) 編輯 收藏 所屬分類:
編程相關(guān)