Linux system performance monitoring tools
As a part of monitoring and troubleshooting our system and applications, we often need to get a quick snapshot of information about the status of our server. This usually means SSHing into a server and running certain commands to get to the information we need. I wanted to share a quick overview of my top 5 commands to get a snapshot of this server information.
htop is an ncurses-based interactive process viewer for Linux. It gives information about the CPU utilization, processes running, uptime and load.
Some of the advantages of using htop over top include:
- colored output
- kill processes without typing pids
- sorting by
iotop is a an application similar to top which is used to show information about disk I/O. It looks at I/O usage information and displays the current I/O usage by processes or threads on the system.
The great thing about iotop, especially for applications with very high IO, is that it allows you to view which processes are consuming the most disk IO and the total of all disk IO at that time.
vnstat is a tool for displaying and logging network traffic of different interfaces on your systems. vnstat is great because it doesn’t add any extra load to your system as it uses the network statistics provided by the kernel.
Some of the arguments that come in handy for this one are:
- -h, –hours show hours
- -d, –days show days
- -m, –months show months
- -w, –weeks show weeks
- -t, –top10 show top10
- -tr, –traffic calculate traffic
Nethogs is very handy tool to trace network traffic. It shows you which processes are using the most bandwidth, instead of showing bandwidth per interface or protocol as most similar programs do. It’s very easy to trace which applications are stealing your networks I/O.
netstat is a powerful tool for network statistics. You can trace network connections and interface statistics very easily. This tool can help you to find security holes in your system by showing all open ports and also shows you which processes opened these ports.
netstat is great to figure out if a process is listening on a specified port and if it is listening locally only (127.0.0.1) or open to everyone (0.0.0.0).
You might also like
Network Administrator CNA/CNE/CCNA/Linux+by AdamKunigiel
I'm a network administrator with over 4 years of experience with different operating systems and network devices. Skills to administer NetWare, Linux and Windows systems, all kind of network services, to design and implement directory services and other systems of central information concerning network resources. Very good knowledge in the area of network and system security. A solid understanding of common threats on the Internet. Skills in installing, configuring and monitoring Firewalls and IDS/IPS systems. Very good knowledge of LAN and WAN technologies, standards, TCP/IP and IPX/SPX protocols, routing, equipment and tools used to configure, troubleshot and manage it
Optimizing Linux Performance: A Hands-On Guide to Linux Performance Tools
Book (Prentice Hall)
Senate panel OKs $51 billion for Commerce, Justice, Science — FCW.com
One sticking point is the House's desire to limit funding for the National Strategy for Trusted Identities in Cyberspace, a plan designed to come up with a new system for managing identities online.
SAP Basis Administration Handbook, NetWeaver Edition
eBooks (McGraw-Hill Osborne Media)
SanDisk 128GB SATA 6.0GB/s 2.5-Inch 7mm Height Solid State Drive (SSD) With Read Up To 475MB/s- SDSSDP-128G-G25
Personal Computer (SanDisk)
Skydog Web App and Smart Family Wi-Fi Router with Cloud Service Subscription
PC Accessory (PowerCloud Systems)
Tripp Lite INTERNET600U 600VA 300W UPS Desktop Battery Back Up Compact 120V USB RJ11 PC, 8 Outlets
CE (Tripp Lite)