issues
search
cloudbytestorage
/
touchstone
Testing for Infrastructure w.r.t Storage
Apache License 2.0
2
stars
0
forks
source link
[elastistor] script to detect anomaly from ps output
#23
Open
AmitKumarDas
opened
8 years ago
AmitKumarDas
commented
8 years ago
ps -auxfwww
AmitKumarDas
commented
8 years ago
-L gives threaded info per row
can customize the output format using -o options
sort the processes consuming high CPU & memory
e.g. ps -eo uname,pid,ppid,nlwp,pcpu,pmem,psr,start_time,tty,time,args --sort -pcpu,-pmem
can skip headers
print user-id,pid, cpu time & cmd name of top 5 intensive processes
i.e. ps -ef --no-headers --sort -pcpu | sed '5q' | awk ' { print $1, $2, $7, $8 }'
ps -auxfwww