Performance Monitoring Flashcards
top
Display and manage the top processes
htop
Interactive process viewer (top alternative)
mpstat 1
Display processor related statistics
vmstat 1
Display virtual memory statistics
iostat 1
Display I/O statistics
tail -100 /var/log/messages
Display the last 100 syslog messages (Use
/var/log/syslog for Debian based systems.)
tcpdump -i eth0
Capture and display all packets on interface eth0
tcpdump -i eth0 ‘port 80’
Monitor all traffic on port 80 ( HTTP )
lsof
List all open files on the system
lsof -u user
List files opened by user
free -h
Display free and used memory ( -h for human
readable, -m for MB, -g for GB
watch df -h
Execute “df -h”, showing periodic updates
mpstat
Display statistics about CPU usage
pidstat
Display statistics about processes running
(process id stat)