Want to bypass GUI of jconsole
Hello all,
I liked jconsole very much. What i want to do is access all functionality of jconsole from os shell (command line) up to now i have two options.
1] Write new Jconsole like JMX client program which will talk to Mbean server.
2]or write something which will talk to jconsole and give me text output on screen.
I am waiting for your suggestions.
[384 byte] By [
JforJavaa] at [2007-11-26 22:30:36]

# 1
Hi,
Here is an example on how you can retrieve the JVM information programatically:
http://blogs.sun.com/jmxetc/entry/how_to_retrieve_remote_jvm
If you want to script it then you could simply use BeanShell to evaluate your
Java code on the fly. (http://www.beanshell.org/).
If you want to script it from within JConsole then you can write your own JConsole
plugin (JDK 6) for that - see for instance here:
http://blogs.sun.com/jmxetc/entry/a_beanshell_plugin_for_jconsole
You might also be tempted to get the JVM information through SNMP, in which
case you should probably read this first:
http://blogs.sun.com/jmxetc/entry/jmx_vs_snmp
Hope this helps,
-- daniel
JMX, SNMP, Java, etc
http://blogs.sun.com/jmxetc