Simple light weight jmx command line utility.
jmxcli {commands} {options}
commands:
lo List available objects
la <object name> List available attributes
get <object name> <attribute name> [-key key] Get attribute value
options:
-s <server> JMX server
-user <username> Username for authentication
-password <password> Password for authentication
-key <key> Composite key path
jmxcli.sh -s service:jmx:remoting-jmx://localhost:4447 lo
jmxcli.sh -s service:jmx:remoting-jmx://localhost:4447 get java.lang:type=Threading ThreadCount
jmxcli.sh -s service:jmx:remoting-jmx://localhost:4447 get java.lang:type=Memory HeapMemoryUsage -key used,init
jmxcli is just one small jar.
jmxcli/
jmxcli.bat
jmxcli.sh
lib/
jmxcli-x.y.z.jar
<optional jars>
You may need additional jars to support special protocols. For use with jboss-as-7 add jboss-client.jar into lib folder.