Created
April 7, 2015 07:58
-
-
Save aminamid/a30da7887771dc2671c9 to your computer and use it in GitHub Desktop.
pac system-statistics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## System configurations | |
get following informations by root | |
### files: | |
/etc/security/limits.conf | |
/proc/cpuinfo | |
### commands: | |
sysctl -a | |
netstat -i | awk '{print $1}' | xargs -i ethtool {} | |
iptables -L | |
crontab -l | |
lspci -vvv | |
dmesg | |
df | |
mount | |
lsblk | |
## Application configurations | |
get following informations by cassandra-user | |
### files: | |
conf/cassandra-env.sh | |
conf/cassandra.yaml | |
conf/cassandra-topology.properties | |
conf/log4j-server.properties | |
### commands: | |
ulimit -a | |
cassandra-cli -h <cassandra_host> -p <thrift_port> | |
cassandra-cli> show keyspaces; | |
cassandra-cli> exit; | |
# while testing | |
## System statistics | |
sar, netstat, top information | |
if there are not sar, following commads install it | |
yum install sar | |
sar/iostat | |
I attached sample to get statistics informations each 10 seconds(smpl.sh) | |
## Application statistics | |
### nodetool | |
nodetool -h 10.196.4.36 -p 8082 cfstats | |
For example, to get the information each 10 seconds. | |
for i in 1 2 3 4 5 6; do nodetool -h 10.196.4.36 -p 8082 cfstats ; sleep 10 ; done | awk '{ print strftime("%Y-%m-%dT%H:%M:%S"), $0; fflush() }' | |
nodetool -h 10.196.4.36 -p 8082 cfhistograms <keyspace> <cfname> | |
### GC informations | |
please commented in following GC log output configurations | |
# GC logging options -- uncomment to enable | |
# JVM_OPTS="$JVM_OPTS -XX:+PrintGCDetails" | |
# JVM_OPTS="$JVM_OPTS -XX:+PrintGCDateStamps" | |
# JVM_OPTS="$JVM_OPTS -XX:+PrintHeapAtGC" | |
# JVM_OPTS="$JVM_OPTS -XX:+PrintTenuringDistribution" | |
# JVM_OPTS="$JVM_OPTS -XX:+PrintGCApplicationStoppedTime" | |
# JVM_OPTS="$JVM_OPTS -XX:+PrintPromotionFailure" | |
# JVM_OPTS="$JVM_OPTS -XX:PrintFLSStatistics=1" | |
# JVM_OPTS="$JVM_OPTS -Xloggc:/var/log/cassandra/gc-`date +%s`.log" | |
# If you are using JDK 6u34 7u2 or later you can enable GC log rotation | |
# don't stick the date in the log name if rotation is on. | |
# JVM_OPTS="$JVM_OPTS -XX:+UseGCLogFileRotation" | |
# JVM_OPTS="$JVM_OPTS -XX:NumberOfGCLogFiles=10" | |
# JVM_OPTS="$JVM_OPTS -XX:GCLogFileSize=10M" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment