http://os.51cto.com/art/201412/460698_all.htm2014-12-19 10:55 Translator: Andyxue linux Chinese font size:T | T
In this article we will list a series of the most frequently used performance monitoring tools, and provide a corresponding introduction link to each of the tools introduced, roughly divided into two categories, based on the command line and provide graphical interface.
Ad:51cto Net + 12th salon: The beauty of big data-how to drive user experience with data
For some time, we have been on the internet to show readers how to configure a variety of different performance monitoring tools for Linux and Linux-like operating systems. In this article we will list a series of the most frequently used performance monitoring tools, and provide a corresponding introduction link to each of the tools introduced, roughly divided into two categories, based on the command line and provide graphical interface.
One, command-line-based performance monitoring tools
1.dstat-Multi-type resource statistics tool
This command integrates three commands, vmstat,iostat and ifstat . It also adds new features and features that allow you to see all of your resource usage in a timely manner, allowing you to compare and integrate different resource usage scenarios. The interface with different color and block layouts helps you to get information more clearly and easily. It also supports exporting information data to a CVS format file, which can be opened with other applications or imported into a database. You can use this command to monitor CPU, memory, and network status over time.
2.atop-better ASCII experience compared to top
This command-line tool, which uses ASCII code display, is a performance monitoring tool that displays all process activity. It can present a daily system log for long-term process activity analysis and highlight overloaded system usage resources. It contains metrics for CPU, memory, swap space, disk, and network layer. All of these features simply run atop at the terminal.
- # atop
Of course you can also use the interactive interface to display and sort the data.
Performance monitoring for 3.Nmon-Unix-like systems
Nmon is the Nigel's monitor abbreviation, which was first developed as a system monitoring tool for AIX . If you use the online mode , you can use the cursor keys to operate the monitor information displayed on the terminal in real time on the screen. Use capture mode to save data in CSV format for further processing and graphical presentation.
For more information, refer to our Nmon performance monitoring article.
4.slabtop-Display kernel slab cache information
This app can show how the cache allocator manages different types of objects cached in the Linux kernel. This command is similar to the top command, except that it focuses on real-time display of kernel slab cache information. It is able to display a list of display caches sorted by different sorting criteria. It can also display a header for the statistics of a slab layer of information. Examples are as follows:
- # Slabtop--sort=a
- # Slabtop-s B
- # Slabtop-s C
- # slabtop-s L
- # Slabtop-s V
- # slabtop-s N
- # slabtop-s O
For more information, see The kernel slab cache article.
5.sar-performance monitoring and bottleneck checking
The SAR command outputs the cumulative activity counter content information selected on the operating system to the standard output. Its audit system based on the count value and time interval parameter outputs the specified number of monitoring information at the specified time interval. If the time interval parameter is set to 0, then the SAR command will show the average statistics of the system from boot to time. The following commands are useful:
- # sar-u 2 3
- # sar-u-F/VAR/LOG/SA/SA05
- # sar-p all 1 1
- # sar-r 1 3
- # sar-w 1 3
6.Saidar-Simple statistical monitoring tool
The Saidar is a simple and lightweight System Information monitoring tool. Although it does not provide most performance reports, it is able to display the most useful system health data in a straightforward way. You can easily see the elapsed time, average load, CPU, memory, process, disk, and network interface statistics.
- Usage: saidar [-D delay] [-c] [-v] [-H]
- -D Set update time (seconds)
- -c color display
- -v display version number
- -h Display this help
7.top-The Classic Linux task management tool
As a well-known Linux tool,top is the task Manager for most Unix-like operating systems. It can display a list of processes that are currently running, and users can sort the list by different criteria. It mainly shows the CPU and memory usage of the system process. Top can quickly check which or which processes are suspending your system. You can see the example of top use here. You can run it and enter the interactive mode by entering top in the terminal:
- Some quick actions for interactive mode:
- global command: < carriage return/Space > ?, =, A,< Span class= "PLN" > B, D, G , H, I K, Q, R , S, W Z
- command of the statistic area: l, m, t, 1
- commands for the task area:
- appearance: B,, Y, Z content: C, F, H , O, S u size: #, I, n sort: <,;, F, O, R
- color scheme: < ret>, A, B , B, H M, Q, S , T, W Z, 0- 7
- window Commands: -, _, =, +, a, a, G, G, W /c17>
8.Sysdig-Advanced view of system processes
Sysdig is a monitoring tool that enables system administrators and developers to gain insight into their system behavior in unprecedented ways. Its development team wants to improve system-level monitoring by providing a unified, orderly and granular way to troubleshoot storage, processes, networks, and memory subsystems. And you can create system activity log files so that you can easily analyze at any time.
Simple example:
- # Sysdig Proc.name=vim
- # sysdig-p "%proc.name%fd.name" "Evt.type=accept and Proc.name!=httpd"
- # Sysdig Evt.type=chdir and User.name=root
- # sysdig-l
- # sysdig-l
- # sysdig-c Topprocs_net
- # sysdig-c fdcount_by fd.sport "Evt.type=accept"
- # sysdig-p "%proc.name%fd.name" "Evt.type=accept and Proc.name!=httpd"
- # sysdig-c Topprocs_file
- # sysdig-c fdcount_by proc.name "Fd.type=file"
- # sysdig-p "%12user.name%6proc.pid%12proc.name%3fd.num%fd.typechar%fd.name" Evt.type=open
- # sysdig-c TOPPROCS_CPU
- # sysdig-c Topprocs_cpu evt.cpu=0
- # sysdig-p "%evt.arg.path" "Evt.type=chdir and User.name=root"
- # Sysdig Evt.type=open and Fd.name contains/etc
More information can be used to improve system-level monitoring and troubleshooting at the Sysdig.
9.netstat-Show open ports and connections
It is a tool that Linux administrators use to display various network information, such as viewing what ports are open and what network connections have been established and which processes are running on that connection. It also displays information about UNIX sockets that are open between different programs. As part of most Linux distributions, many of Netstat's commands are described in detail in Netstat and its different outputs. The most commonly used are as follows:
- $ netstat | head -20
- $ Netstat -r
- $ Netstat -RC
- $ Netstat -i
- $ Netstat -ie
- $ Netstat -s
- $ Netstat -g
- $ Netstat -tapn
10.tcpdump-Insight Network packets
tcpdump can be used to view the packet contents of a network connection . It shows various information about the contents of the packet during transmission. To make the output information more useful, it allows the user to get the information they want through different filters. The following examples can be referenced:
- # tcpdump-i eth0 not Port 22
- # tcpdump-c 10-i eth0
- # Tcpdump-ni Eth0-c not Port 22
- # tcpdump-w Aloft.cap-s 0
- # Tcpdump-r Aloft.cap
- # tcpdump-i eth0 DST Port 80
You can find a detailed description of the article "in Topdump and capture package".
11.vmstat-Virtual Memory statistics
Vmstat is the abbreviation for virtual memory (statistics), as a memory monitoring tool that collects and displays information about memory , processes , Summary information for terminal and paging and I/O blocking . As an open source program, it can be found in most Linux distributions, including Solaris and FreeBSD. It is used to diagnose most memory performance problems and other related issues.
m For more information refer to the Vmstat command article.
12.free-Memory statistics
Free is another command-line tool that can be used to display memory and swap space in the terminal. Because of its simplicity, it is often used to quickly view memory usage or to be applied to different scripts and applications. Here you can see many applications of this applet. Almost all system administrators use this tool on a daily basis. :-)
13.Htop-More friendly top
Htop is basically a top-improvement version that displays more statistics in a more colorful way, while allowing you to sort in different ways, providing a user-friendly interface.
You can find more information in the article "About Htop and top comparisons".
14.SS-A modern alternative to network management
SS is part of the Iproute2 package. Iproute2 is an alternative to a complete set of standard UNIX network tool components that were used to complete network interface configuration, routing tables, and managing ARP table tasks. The SS tool is used to record socket statistics, which can display information similar to netstat, as well as more TCP and status information. Some examples are as follows:
- # Ss-tnap
- # SS-TNAP6
- # Ss-tnap
- # ss-s
- # Ss-tn-o State Established-p
15.lsof-the list shows open files
The lsof command, meaning "list openfiles", is used to display all open files and the process of opening them in many Unix-like systems. In most Linux distributions and other Linux operating systems, system administrators use it to check which files are opened by different processes.
- # lsof +p process_id
- # Lsof | Less
- # lsof–u Username
- # LSOF/ETC/PASSWD
- # Lsof–i Tcp:ftp
- # Lsof–i TCP:80
You can find more examples in lsof articles
16.iftop-A network connection tool similar to top
Iftop is another top-like program based on web information. It can show the current network connection status in terms of bandwidth usage or upload or download order. It also provides the estimated time to complete the download file.
For more information , refer to the network traffic Iftop article.
17.iperf-Network Performance tools
Iperf is a network test tool capable of creating TCP and UDP data connections and measuring their transmission performance over the network. It supports adjusting different parameters about time, protocol, and Buffering. For each test, it reports bandwidth, drops, and other parameters.
If you want to use this tool, you can refer to this article: How to install and use Iperf
18.Smem-Advanced Memory Reporting tool
Smem is one of the state-of-the-art Linux command-line tools that provide an actual memory size that has been used and shared in the system, attempting to provide a more reliable current memory usage data.
- $ smem -m
- $ smem -m -p | grep firefox
- $ smem -u -p
- $ smem -w -p
Refer to our article: Smem more examples
Second, graphical or web-based performance tools
Community Branch version of 19.icinga-nagios
Icinga is an open source, free Network monitoring program, which, as a branch of Nagios, inherits most of the existing functionality of the former, and adds functionality and patches that the community user has long requested.
For more information , please refer to the installation and Configuration Lcinga article.
20.Nagios-The most popular monitoring tool
As the most widely used and most popular monitoring solution on Linux, it has a daemon that collects information from different processes and remote hosts, and the information gathered is presented through a powerful web interface .
You can find more information in the article "How to install Nagios"
Procexp under the 21.Linux process Explorer-linux
Linux Process Explorer is a graphical browsing tool for Linux. It can display different process information, such as the number of processes, TCP/IP connectivity, and performance metrics for each process. As a replacement for Linux under Windows procexp , it was developed by Sysinternals , with the goal of being more than top and PS Provide a better user experience.
See the Linux Process Explorer article for more information.
22.Collectl-Performance monitoring tools
You can either use the performance monitoring tool interactively, or you can write the report to disk and access it through a Web server. It displays statistics such as CPU, disk, memory, network, network file system, process, slabs , etc. in an easy-to- read and manageable format.
more articles on Collectl.
23.MRTG-Classic network traffic monitoring graphics tool
This is a traffic monitoring tool that uses RRDtool to generate graphics. As the first traffic monitoring tool to provide a graphical interface , it is widely used in Unix-like operating systems. Check out our article on how to use MRTG for more information on installation and configuration.
24.Monit-Easy-to-use monitoring tool
Monit is an open source Linux tool for monitoring processes , system loading , file system and directory files , and more. You can enable it to automate maintenance and repair, perform specific actions in the case of running errors, or send email reports to alert system administrators. If you want to use this tool, you can see how to use the Monit article.
25.Munin-provides monitoring and alerting services to servers
As a network resource monitoring tool,Munin can help analyze resource trends and view weaknesses and lead to performance issues the reason. The team that developed this software wanted it to be easy to use and user-friendly to experience. The software was developed in Perl and used RRDtool to draw graphics, using a Web interface for rendering. When developers promote this app, they claim that more than 500 monitoring plug-ins are currently "plug and play *".
More information can be found in the articles about Munin.
via:http://linoxide.com/monitoring-2/linux-performance-monitoring-tools/
Adrian Dinu Translator: Andyxue proofreading: Wxy
"Editor's recommendation"
- Twice times ahead of SuSE, Red Hat Enterprise Linux creates world record
- System shovel Sysdig:linux server monitoring and Troubleshooting tool
- Systemd This controversial project is taking over Linux distributions around you
- How to query Apache logs with SQL statements on Linux
- Linux system Monitoring, diagnostic tool IO wait
You deserve: 25 Linux performance monitoring tools