Difference between revisions of "Performance monitoring"

From Tech-Wiki
Jump to: navigation, search
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Check Point]]
+
[[Category:Linux]]
top - Interactive process monitoring tool
+
# top
+
  
lsof - List open files and sockets/pipes as well
+
dstat - Powerful and feature rich command line utilities that monitors CPU, memory, disk and network
  # lsof
+
  # dstat -tlcmdngs --top-cpu --top-mem
  
 
htop - Advanced interactive process monitoring tool
 
htop - Advanced interactive process monitoring tool
Line 12: Line 10:
 
  # iotop
 
  # iotop
  
tcpdump - Network packet capture (Sniffer)
+
iostat - Display statistics of CPU, disk I/O and NFS
  # tcpdump -i eth0 src host 10.178.201.10 or src host 10.1.1.1
+
  # iostat -m -n -N -x 1
  
Collectl - Powerful and feature rich command line utility that monitors CPU, memory, disk and network
+
iftop - Real time network bandwidth monitoring tool
 +
# iftop
 +
 
 +
Also check nload, trafshow, iptraf, pftop
  
iptraf - Real time IP and network monitoring
 
# iptraf
 
  
 
vmstat - Display statistics of virtual memory, kernel, disks, process, I/O blocks and CPU activity
 
vmstat - Display statistics of virtual memory, kernel, disks, process, I/O blocks and CPU activity
Line 25: Line 24:
 
  # vmstat -S m (show MB instead of KB)
 
  # vmstat -S m (show MB instead of KB)
  
iostat - Display statistics of CPU, disk I/O and NFS
+
lsof - List open files and sockets/pipes as well
  # iostat
+
  # lsof
  # iostat -m  (show MB/sec instead of blocks/sec)
+
 
  # iostat -n
+
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)
  
Additional tools: iperf, ntop, apache mod_status
+
Additional tools: iperf for traffic generation, mytop and apache mod_status

Latest revision as of 02:51, 21 June 2020


dstat - Powerful and feature rich command line utilities that monitors CPU, memory, disk and network

# dstat -tlcmdngs --top-cpu --top-mem

htop - Advanced interactive process monitoring tool

# htop

iotop - Display real time Disk I/O and process

# iotop

iostat - Display statistics of CPU, disk I/O and NFS

# iostat -m -n -N -x 1

iftop - Real time network bandwidth monitoring tool

# iftop

Also check nload, trafshow, iptraf, pftop


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)

lsof - List open files and sockets/pipes as well

# lsof

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)

Additional tools: iperf for traffic generation, mytop and apache mod_status