windows下Jconsole本地连接失败

本文介绍了解决在MyEclipse环境下无法通过JConsole查看应用程序MBeans的问题。通过设置特定的JMX远程访问参数,可以实现在JConsole中显示MyEclipse及其运行的应用程序。

  在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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值