Performance Monitoring and Statistics Flashcards
top
Display and manage the top processes
htop
Interactive process viewer (top alternative)
mpstat 1
Display processor related statistics (main processor…stat…1?)
vmstat 1
Display virtual memory statistics (virtual memory statistics 1)
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 (ethernet 0, presumably)
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 “user”
free -h (or -m/-g)
Display free and used memory (-h for human readable, -m for MB, -g for GB)
watch df -h
Execute “df -h”, showing periodic updates
What is “df”?
mpstat
Display statistics about CPU usage
This is different from “mpstat 1” how?
pidstat
Display statistics about processes running