Professional Documents
Culture Documents
fuser 80/tcp
# to know which process uses the /dev/sdb1 filesystem:
fuser -vm /dev/sdb1
atop
top [z,A,p,o]
htop
iptraf
iotop
vnstat
iftop
nethogs
dstat
mpstat
iostat
ifstat
netstat
vmstat
vnstat
sar
mtr
mtrace
traceroute
tracepath
lsof
nmap
strace
dtrace
mtrace
gdb
Run strace against /bin/foo and capture its output to a text file in output.txt:
$ strace -o output.txt /bin/foo
You can strace the webserver process and see what it's doing. For example, strace
php5 fastcgi process, enter:
$ strace -p 22254 -s 80 -o /tmp/debug.lighttpd.txt
To see only a trace of the open, read system calls, enter :
$ strace -e trace=open,read -p 22254 -s 80 -o debug.webserver.txt
tcpdump
wireshark
ethereal
ss
pmap -d <pid>
mpstat -p ALL
sar
sar 4 5
# sar -n DEV -f /var/log/sa/sa24 | more
# sar -n DEV | more
ps -p 19358 -o comm=
Tload
watch