开发者

Java jconsole application by name

开发者 https://www.devze.com 2023-03-31 03:58 出处:网络
I frequently use jconsole to connect to local tomcat. Is possible connect not by PID, but process name? Because for day I have to restart tomcat many times and each time I need to connect with jconsol

I frequently use jconsole to connect to local tomcat. Is possible connect not by PID, but process name? Because for day I have to restart tomcat many times and each time I need to connect with jconsole to invoke some operation on mbean - if it possible to use process name or some part of it - e.g. catalina开发者_如何学Go - it will save many time. Thanks.


What version of Java are you using? In jdk 1.6.0_25 that I have installed, jconsole responds with both name and PID for local running processes when prompted for New Connection.

A side note, if you like jconsole then you'll love jvisualvm which became part of the jdk at some early update of version 6. On top of that, jconsole can run as a plugin from within jvisualvm.

0

精彩评论

暂无评论...
验证码 换一张
取 消