Check System Memory Usage...
free -h
Check System Disk Usage...
df -h
Clean System Memory Cache...
sync; sudo echo 3 > /proc/sys/vm/drop_caches
List TCP Port 80
netstat -an | grep :80 | sort
Count TCP Port 80 Connection
netstat -n | grep :80 | wc -l
List Client IP TCP Port 80 Connection
netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
2016/09/03
Openfire JVM Heap Memory Configuration List
128GB
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS -Xms128g -Xmx128g -Xmn8g -Xss256K -XX:SurvivorRatio=8"
INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS -XX:PermSize=4g -XX:MaxPermSize=4g"
INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS -XX:LargePageSizeInBytes=512m -XX:+UseFastAccessorMethods"
INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS -XX:+DisableExplicitGC"
INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS -XX:+UseConcMarkSweepGC -XX:+UseParNewGC"
INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS -XX:+UseCMSInitiatingOccupancyOnly -XX:+CMSParallelRemarkEnabled"
INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS -XX:SoftRefLRUPolicyMSPerMB=1 -XX:CMSInitiatingOccupancyFraction=80"
INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:/var/tmp/openfire-gc.log"
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS -Xms128g -Xmx128g -Xmn8g -Xss256K -XX:SurvivorRatio=8"
INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS -XX:PermSize=4g -XX:MaxPermSize=4g"
INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS -XX:LargePageSizeInBytes=512m -XX:+UseFastAccessorMethods"
INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS -XX:+DisableExplicitGC"
INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS -XX:+UseConcMarkSweepGC -XX:+UseParNewGC"
INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS -XX:+UseCMSInitiatingOccupancyOnly -XX:+CMSParallelRemarkEnabled"
INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS -XX:SoftRefLRUPolicyMSPerMB=1 -XX:CMSInitiatingOccupancyFraction=80"
INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:/var/tmp/openfire-gc.log"
訂閱:
文章 (Atom)