|
||
---|---|---|
src/main/java/fr/sysnove/shinken | ||
.gitignore | ||
README.md | ||
pom.xml |
README.md
Readme
Prerequisites
You must have Maven installed, and a working JDK 8 to build the project.
Build
Run the following command:
mvn
The library will be generated in target/jmx-$VERSION.jar
.
Run
To run the program, just type:
java -jar target/jmx-$VERSION.jar
The program will show you the help.
Examples
The following command will get:
- on example.com port 8209:
-U service:jmx:rmi:///jndi/rmi://example.com:8209/jmxrmi
- memory information:
-O java.lang:type=Memory
- for Non Heap (PermGen) memory usage:
-a NonHeapMemoryUsage
- using
used
key to get current value:-k used
- using
max
key to get maximum value:-K used
- with 80% used warning threshold:
-w 80
- with 90% used critical threshold:
-c 90
- using Byte unit:
-u B
- humanizing output:
-H
- using SI:
-s
java -jar target/jmx-$VERSION.jar -U service:jmx:rmi:///jndi/rmi://example.com:8209/jmxrmi -O java.lang:type=Memory -a NonHeapMemoryUsage -k used -K max -w 80 -c 90 -u B -H -s