1. 程式人生 > >storm work配置JMX監控

storm work配置JMX監控

配置JMX監控,可以檢視GC和執行緒等等資訊,方便debug,以下是在sorm.yaml檔案中配置引數配置,

%ID%取的時每個work的程序號,因為一個節點上可以有多個work,所以防止埠號重複導致啟動失敗,所以用動態代替

worker.childopts: "-Xmx2048m -Xms2048m -Xmn500m -XX:PermSize=256M -XX:MaxPermSize=256M -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled -XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=0 -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+CMSConcurrentMTEnabled -Djava.net.preferIPv4Stack=true
 -Xloggc:/home/master/platform/apache-storm-0.9.4/logs/gc_%ID%.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps 
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=1%ID%"