在myeclipse里编写demo程序后运行,打开jconsole发现在本地进程列表发现只有jconsole本身,没有期望中的myeclipse进程和demo进程。
搜索“jconsole本地连接失败”大多数给出的答案都是:
在Run configurations……中 加入以下运行参数
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8011 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
然后使用jconsole远程连接"localhost:8011",方法可行
来源:https://www.cnblogs.com/histlyb/p/6740038.html