Merge "add dstat to see top process info"
This commit is contained in:
commit
cc3fcc8c8e
1
files/apts/dstat
Normal file
1
files/apts/dstat
Normal file
@ -0,0 +1 @@
|
||||
dstat
|
1
files/rpms-suse/dstat
Normal file
1
files/rpms-suse/dstat
Normal file
@ -0,0 +1 @@
|
||||
dstat
|
1
files/rpms/dstat
Normal file
1
files/rpms/dstat
Normal file
@ -0,0 +1 @@
|
||||
dstat
|
12
stack.sh
12
stack.sh
@ -298,6 +298,8 @@ SYSLOG_PORT=${SYSLOG_PORT:-516}
|
||||
SYSSTAT_FILE=${SYSSTAT_FILE:-"sysstat.dat"}
|
||||
SYSSTAT_INTERVAL=${SYSSTAT_INTERVAL:-"1"}
|
||||
|
||||
DSTAT_FILE=${DSTAT_FILE:-"dstat.txt"}
|
||||
|
||||
PIDSTAT_FILE=${PIDSTAT_FILE:-"pidstat.txt"}
|
||||
PIDSTAT_INTERVAL=${PIDSTAT_INTERVAL:-"5"}
|
||||
|
||||
@ -879,6 +881,16 @@ if is_service_enabled sysstat; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if is_service_enabled dstat; then
|
||||
# Per-process stats
|
||||
DSTAT_OPTS="-tcndylp --top-cpu-adv"
|
||||
if [[ -n ${SCREEN_LOGDIR} ]]; then
|
||||
screen_it dstat "cd $TOP_DIR; dstat $DSTAT_OPTS | tee $SCREEN_LOGDIR/$DSTAT_FILE"
|
||||
else
|
||||
screen_it dstat "dstat $DSTAT_OPTS"
|
||||
fi
|
||||
fi
|
||||
|
||||
if is_service_enabled pidstat; then
|
||||
# Per-process stats
|
||||
PIDSTAT_OPTS="-l -p ALL -T ALL"
|
||||
|
Loading…
Reference in New Issue
Block a user