Java mon amour: JMXTrans and Graphite: getting started
I verify the installation parameters:
less /etc/sysconfig/jmxtrans
/usr/share/jmxtrans/jmxtrans.sh start sample.json
tail -f jmxtrans.log
Read full article from Java mon amour: JMXTrans and Graphite: getting started
I verify the installation parameters:
less /etc/sysconfig/jmxtrans
# configuration file for package jmxtrans export JAR_FILE="/usr/share/jmxtrans/jmxtrans-all.jar" export LOG_DIR="/var/log/jmxtrans" export SECONDS_BETWEEN_RUNS=60 export JSON_DIR="/var/lib/jmxtrans" export HEAP_SIZE=512 export NEW_SIZE=64 export CPU_CORES=2 export NEW_RATIO=8 export LOG_LEVEL=debug
java -Dcom.sun.management.jmxremote.port=1105 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false Sample
cd /usr/share/jmxtrans ./jmxtrans.sh Usage: ./jmxtrans.sh {start|stop|restart|status} [filename.json]
01 | { |
02 | "servers" : [ { |
03 | "port" : "1099", |
04 | "host" : "w2", |
05 | "queries" : [ { |
06 | "outputWriters" : [ { |
07 | "@class" : "com.googlecode.jmxtrans.model.output.StdOutWriter", |
08 | "settings" : { |
09 | } |
10 | } ], |
11 | "obj" : "java.lang:type=Memory", |
12 | "attr" : [ "HeapMemoryUsage", "NonHeapMemoryUsage" ] |
13 | }, { |
14 | "outputWriters" : [ { |
15 | "@class" : "com.googlecode.jmxtrans.model.output.StdOutWriter", |
16 | "settings" : { |
17 | } |
18 | } ], |
19 | "obj" : "java.lang:name=CMS Old Gen,type=MemoryPool", |
20 | "attr" : [ "Usage" ] |
21 | }, { |
22 | "outputWriters" : [ { |
23 | "@class" : "com.googlecode.jmxtrans.model.output.StdOutWriter", |
24 | "settings" : { |
25 | } |
26 | } ], |
27 | "obj" : "java.lang:name=ConcurrentMarkSweep,type=GarbageCollector", |
28 | "attr" : [ "LastGcInfo" ] |
29 | } ], |
30 | "numQueryThreads" : 2 |
31 | } ] |
32 | } |
tail -f jmxtrans.log
Read full article from Java mon amour: JMXTrans and Graphite: getting started
No comments:
Post a Comment