Linux Web Server performance analysis and troubleshooting
ls -drt /var/log/* | tail -n5 | xargs sudo tail -n0 -f
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head
cat /var/log/httpd/access_log | awk '{print $1}' | sort | uniq -c | sort -n
Hierarchy of processes
ps auxf | less
Current process list presented in tree hierarchy and wide output (showing the full command line arguments and not cutting them after X characters)
ps -auxwwwf
Tree of processes
pstree
show all processes and their process id's:
pstree -ap
kill 3009
If it refused to die, add -9
kill -9 3009