20 Linux System Monitoring Tools Every SysAdmin Should Know
20 Linux System Monitoring Tools Every SysAdmin Should Know
Need to monitor Linux server performance? Try these built-in command and a few add-
on tools. Most Linux distributions are equipped with tons of monitoring. These tools
provide metrics which can be used to get information about system activities. You can
use these tools to find the possible causes of a performance problem. The commands
discussed below are some of the most basic commands when it comes to system analysis
and debugging server issues such as:
Hot
Usage
Key
t Displays summary information off and on.
m Displays memory information off and on.
Sorts the display by top consumers of various system resources. Useful for quick
A
identification of performance-hungry tasks on a system.
Enters an interactive configuration screen for top. Helpful for setting up top for a
f
specific task.
o Enables you to interactively select the ordering within top.
r Issues renice command.
k Issues kill command.
z Turn on or off color/mono
#4: uptime - Tell How Long The System Has Been Running
The uptime command can be used to see how long the server has been running. The
current time, how long the system has been running, how many users are currently logged
on, and the system load averages for the past 1, 5, and 15 minutes.
# uptime
Output:
1 can be considered as optimal load value. The load can change from system to system.
For a single CPU system 1 - 3 and SMP systems 6-10 load value might be acceptable.
=> Related: :
=> Related: : How to collect Linux system utilization data into a file
=> Related: : Linux display each multiple SMP CPU processors utilization individually.
47394: /usr/bin/php-cgi
Address Kbytes Mode Offset Device Mapping
0000000000400000 2584 r-x-- 0000000000000000 008:00002 php-cgi
0000000000886000 140 rw--- 0000000000286000 008:00002 php-cgi
00000000008a9000 52 rw--- 00000000008a9000 000:00000 [ anon ]
0000000000aa8000 76 rw--- 00000000002a8000 008:00002 php-cgi
000000000f678000 1980 rw--- 000000000f678000 000:00000 [ anon ]
000000314a600000 112 r-x-- 0000000000000000 008:00002 ld-2.5.so
000000314a81b000 4 r---- 000000000001b000 008:00002 ld-2.5.so
000000314a81c000 4 rw--- 000000000001c000 008:00002 ld-2.5.so
000000314aa00000 1328 r-x-- 0000000000000000 008:00002 libc-2.5.so
000000314ab4c000 2048 ----- 000000000014c000 008:00002 libc-2.5.so
.....
......
..
00002af8d48fd000 4 rw--- 0000000000006000 008:00002 xsl.so
00002af8d490c000 40 r-x-- 0000000000000000 008:00002 libnss_files-
2.5.so
00002af8d4916000 2044 ----- 000000000000a000 008:00002 libnss_files-
2.5.so
00002af8d4b15000 4 r---- 0000000000009000 008:00002 libnss_files-
2.5.so
00002af8d4b16000 4 rw--- 000000000000a000 008:00002 libnss_files-
2.5.so
00002af8d4b17000 768000 rw-s- 0000000000000000 000:00009 zero (deleted)
00007fffc95fe000 84 rw--- 00007ffffffea000 000:00000 [ stack ]
ffffffffff600000 8192 ----- 0000000000000000 000:00000 [ anon ]
mapped: 933712K writeable/private: 4304K shared: 768000K
=> Related: : Linux find the memory used by a program / process using pmap command
#11 and #12: netstat and ss - Network Statistics
The command netstat displays network connections, routing tables, interface statistics,
masquerade connections, and multicast memberships. ss command is used to dump
socket statistics. It allows showing information similar to netstat. See the following
resources about ss and netstat commands:
Displays various basic information about the computer's hardware and software.
Linux Kernel version
GNOME version
Hardware
Installed memory
Processors and speeds
System Status
Currently available disk space
Processes
Memory and swap space
Network usage
File Systems
Lists all mounted filesystems along with basic information about each.