Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the Linux performance monitoring tools

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "what are the Linux performance monitoring tools", the content is simple and easy to understand, and the organization is clear. I hope it can help you solve your doubts. Let Xiaobian lead you to study and learn "what are the Linux performance monitoring tools".

Command-line based performance monitoring tools

1. dstat -Multi-type resource statistics tool

This command combines vmstat, iostat and ifstat. New features and functionality have also been added that allow you to see resource usage in real time, enabling you to compare and integrate different resource usage. The interface with different colors and block layouts helps you get information more clearly and easily. It also supports exporting information data to cvs format files that can be opened with other applications or imported into databases. You can use this command to monitor cpu, memory, and network status over time.

2. atop -Better ASCII experience than top

This command line tool using ASCII display is a performance monitoring tool that displays all process activity. It displays daily system logs for long-term process activity analysis and highlights overloaded system usage resources. It contains metrics for CPU, memory, swap space, disk, and network layers. All of these features are simply run atop on the terminal.

# atop

Of course, you can also use the interactive interface to display and sort data.

3. Nmon -Performance Monitoring for Unix-like Systems

Nmon stands for Nigel's Monitor and was originally developed as a system monitoring tool for AIX. If online mode is used, monitor information displayed on the terminal in real time can be operated on the screen using cursor keys. Capture mode allows you to save data in CSV format for further processing and graphical presentation.

See our nmon performance monitoring article for more information.

4. slabtop -Displays kernel slab cache information

This app shows how 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 displaying kernel slab cache information in real time. it can display cache list sorted by different sort criteria. It can also display a header of statistics for slab layer 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 contents information selected on the operating system to standard output. The audit system, which is based on count values and time interval parameters, outputs monitoring information a specified number of times at specified time intervals. If the interval parameter is set to 0, the sar command will display the average statistics of the system from power-on to that time. Useful commands are as follows:

# 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

Saidar is a simple and lightweight system information monitoring tool. While it doesn't provide most performance reports, it does provide the most useful system health data in a straightforward way. You can easily see runtime, average load, CPU, memory, processes, disks, and network interface statistics.

Usage: saidar [-d delay] [-c] [-v] [-h] -d Set update time in seconds-c Color display-v Display version number-h Display this help

7.top Classic Linux Task Management Tool

A well-known Linux tool, top is the task manager for most Unix-like operating systems. It can display a list of currently running processes, which the user can sort by different criteria. It mainly shows the CPU and memory usage of system processes. top can quickly check which process or processes are suspending your system. You can see examples of top usage here. You can run it by typing top on the terminal and entering interactive mode:

Some shortcuts to interactive mode: global command: ?, =, A, B, d, G, h, I, k, q, r, s, W, Z Command for statistical zones: l, m, t, 1 Command in the mission area: Appearance: b, x, y, z Content: c, f, H, o, S, u Size: #, i, n Sort: , F, O, R Color scheme: , a, B, b, H, M, q, S, T, w, z, 0 - 7 window commands: -, _, =, +, A, a, G, g, w

8. Sysdig -Advanced view of system processes

Sysdig is a monitoring tool that gives system administrators and developers insight into the behavior of their systems. Its development team wants to improve system-level monitoring by providing a unified, orderly and granular visibility of storage, processes, networks and memory subsystems for troubleshooting, and creating system activity log files that you can easily analyze at any time.

Simple examples:

# 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 "user.name %6proc.pid proc.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 found on how sysdig can be used to improve system-level monitoring and troubleshooting.

9. netstat -Displays open ports and connections

It is a tool used by Linux administrators to display various network information, such as seeing what ports are open and what network connections have been established and what processes are running on top of that connection. It also displays information about Unix sockets opened between different programs. As part of most Linux distributions, many of netstat's commands are described in detail in netstat and its various 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 into network packets

tcpdump can be used to view the packet content of a network connection. It shows various information about the contents of the packet during transmission. To make the output more useful, it allows users to get the information they want through different filters. Examples that may be referred to are as follows:

# tcpdump -i eth0 not port 22# tcpdump -c 10 -i eth0# tcpdump -ni eth0 -c 10 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 in the article "topdump and capture packages."

11. vmstat -Virtual memory statistics

vmstat stands for virtual memory statistics and is a memory monitoring tool that collects and displays summary information about memory, processes, terminals, 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 displays memory and swap space usage in terminals. Because of its simplicity, it is often used to quickly view memory usage or is applied to different scripts and applications. Here you can see many applications of this Mini programs. Almost all system administrators use this tool daily.:-)

13. Htop -more friendly top

Htop is basically an improved version of top that displays more statistics in a more colorful way while allowing you to sort them in different ways, providing a user-friendly interface.

You can find more information in the article "Comparison of htop and top."

14.ss Modern alternative to web management

SS is part of the iproute2 package. iroute 2 is intended to replace a set of standard Unix networking tool components that were once used to perform network interface configuration, routing tables, and ARP table management tasks. The ss tool is used to record socket statistics and can display netstat-like information 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 -List shows open files

The lsof command, which means "list open files," is used on many Unix-like systems to display all open files and the processes that opened them. In most Linux distributions and other Linux-like operating systems, system administrators use it to check which files are open 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 the lsof article

16. iftop -similar to top of the network connection tool

iftop is another top-like program based on network information. It can display the current network connection status sorted by bandwidth usage or upload or download volume. It also provides an estimated completion time for downloading the file.

More information can be found in the iftop article on network traffic.

17. iperf -Network Performance Tool

iperf is a network testing tool that can create TCP and UDP data connections and measure their transmission performance over the network. It supports adjusting different parameters regarding timing, protocol and buffering. For each test, it reports bandwidth, packet loss, 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 most advanced Linux command-line tools that provides information about the actual amount of memory already used and shared in the system in an attempt to provide a more reliable picture of current memory usage.

$ smem -m$ smem -m -p | grep firefox$ smem -u -p$ smem -w -p

See our article: Smem for more examples

Graphical or Web-based performance tools

19. Icinga - Nagios Community Branch Version

Icinga is an open-source free network monitoring program, as a branch of Nagios, it inherits most of the existing features of the former, while adding features and patches that the community has long requested based on these features.

For more information, refer to the Installing and Configuring Lcinga article.

20. Nagios -the most popular surveillance tool

As the most widely used and popular monitoring solution on Linux, it has a daemon that collects information about different processes and remote hosts, and the collected information is presented through a powerful web interface.

You can find more information in the article "How to install nagios"

21. Linux process explorer -Procexp under Linux

Linux process explorer is a graphical process explorer for Linux. It can display different process information, such as the number of processes, TCP/IP connections, and performance metrics for each process. As an alternative to procexp for Windows and Linux, it was developed by Sysinternals with the goal of providing a better user experience than top and ps.

Check out the linux process explorer article for more information.

22. Collectl -Performance Monitoring Tool

You can use this performance monitoring tool either interactively or by writing reports to disk and accessing them via a web server. It displays CPU, disk, memory, network, network file system, processes, tabs and other statistics in an easy-to-read and easy-to-manage format.

More articles about Collectl.

23. MRTG -Classic network traffic monitoring graphical tool

This is a graphical traffic monitoring tool using rrdtool. As one of the earliest graphical traffic monitoring tools, 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 loads, file systems, and directory files. You can automate maintenance and repair, perform specific actions in case of an error, or send an email alert to the system administrator. If you want to use this tool, you can check out the article on how to use Monit.

25. Munin -Monitoring and alerting services for servers

As a network resource monitoring tool, Munin helps analyze resource trends and identify weaknesses and causes of performance issues. The team that developed this software wanted it to be easy to use and user-friendly. The software is developed in Perl and uses rrdtool to draw graphics and a web interface to render. Developers promote the app claiming that there are currently more than 500 monitoring plug-ins available "plug and play *."

That's all for "What are the Linux performance monitoring tools?" Thanks for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report