公司的一个项目,使用netty作为通信框架,也就是通过netty启动的。今天想用jconsole监控系统运行情况,在这里记录一下我的配置
1,jconsole命令启动,出现界面
2,选择本地进程,找到你想监控的进程。然后链接,然后出现
3,这里我费了半天劲,网上查了半天,需要配置
-Djava.rmi.server.hostname={本机ip}
-Dcom.sun.management.jmxremote.port=9090
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
这个东西在哪里配置呢,首先我的项目是通过netty的main方法启动的。如果是shell启动,在shell脚本中,只需要增加以上配置。但是,我通过eclipse启动的如何配置呢?
here
这个很熟悉吧!!!!!!!!
最后