-
Notifications
You must be signed in to change notification settings - Fork 3
usage samples
jeanarcand edited this page Apr 16, 2013
·
2 revisions
- call the garbage collector every 2 seconds with console output
java -jar jmxbox-<version>.jar -host localhost -port 1234 -invokeOperation java.lang:type=Memory;gc -interval 2000 -repetitions 0
- read the current thread cpu time and user time every second and write the results to a csv file
java -jar jmxbox-<version>.jar -host localhost -port 1234 -readAttribute java.lang:type=Threading;CurrentThreadCpuTime;CurrentThreadUserTime -outputFile /tmp/thread.usage.csv
- read value from a composite attribute
java -jar jmxbox-<version>.jar -host localhost -port 1234 -readAttribute "java.lang:type=MemoryPool,name=PS Eden Space;Usage.used"