Difference between revisions of "Performance monitoring"
From Tech-Wiki
Line 13: | Line 13: | ||
tcpdump - Network packet capture (Sniffer) | tcpdump - Network packet capture (Sniffer) | ||
− | # tcpdump -n -i eth0 | + | # tcpdump -n -i eth0 net 10.1.1.0/24 and host 10.2.2.2 and port 80 |
+ | # tcpdump -n -i eth0 'host 10.1.1.1 and (port 80 or 443)' | ||
# tcpdump -w - | tee capture.pcap | tcpdump -r - (write to file and standard output the same time) | # tcpdump -w - | tee capture.pcap | tcpdump -r - (write to file and standard output the same time) | ||
Revision as of 17:44, 17 September 2017
top - Interactive process monitoring tool
# top
lsof - List open files and sockets/pipes as well
# lsof
htop - Advanced interactive process monitoring tool
# htop
iotop - Display real time Disk I/O and process
# iotop
tcpdump - Network packet capture (Sniffer)
# tcpdump -n -i eth0 net 10.1.1.0/24 and host 10.2.2.2 and port 80 # tcpdump -n -i eth0 'host 10.1.1.1 and (port 80 or 443)' # tcpdump -w - | tee capture.pcap | tcpdump -r - (write to file and standard output the same time)
iptraf - Real time IP and network monitoring
# iptraf
Also check ntop, iftop, pftop, trafshow
vmstat - Display statistics of virtual memory, kernel, disks, process, I/O blocks and CPU activity
# vmstat # vmstat -s (other visualization) # vmstat -S m (show MB instead of KB)
iostat - Display statistics of CPU, disk I/O and NFS
# iostat -m -n -N -x 1
Additional tools: iperf for traffic generation, and apache mod_status
And Collectl - Powerful and feature rich command line utility that monitors CPU, memory, disk and network