Linux real-time monitoring of Swiss Army Knife-Glances

Source: Internet
Author: User
Tags linux mint
We mentioned earlier that there are many Linux system monitoring tools that can be used to monitor system performance. However, we estimate that more users may prefer tools (top commands) that are included in most Linux distributions ). The top command is a real-time task manager in Linux. It is also a common system monitoring tool used to find system performance bottlenecks in the GNU/Linux release and to help us make the right operations. She has a very simple interface and comes with a small number to help us quickly understand

We mentioned earlier that there are many Linux system monitoring tools that can be used to monitor system performance. However, we estimate that more users may prefer tools that are included in most Linux distributions (TopCommand ).

The top command is a real-time task manager in Linux. It is also used inGNU/LinuxFind bottlenecks in system performance in the release, and help us make the right operation of common system monitoring tools. She has a very simple interface and comes with a small number of practical options that can help us quickly understand system performance.

However, sometimes it may be difficult to find an application or process that occupies a large amount of system resources. Because the top Command itself does not help us highlight those who eat too muchCPU,MemoryOr programs with other resources.

To achieve this goal, we will introduce a super powerful system monitoring program --Glances. She can automatically highlight programs that use the highest system resources and provide as much information as possible for Linux/Unix servers.

What is Glances?

GlancesIs written in Python and usedPsutilCross-platform Command Line System Monitoring Tool developed based on curses to capture information from the system. With Glances, we can monitorCPU, average load, memory, network traffic, disk I/O, Other ProcessorsAndFile SystemSpace utilization.

Glances is a monitoring tool.GNU/LinuxAndFreeBSDOperating SystemGPLLicensed free software.

Glances also provides many practical options. One of the main functions we can see in the configuration file is to set key values and corresponding labels (Careful [Be careful],Warning [warning]AndCritical [Severe]), Then she will automatically help us identify the system to reach a bottleneck with different colors.

Glances Main Functions
  • CPU information (User-related applications, system core programs and idle programs)
  • Total memory information, including physical memory, swap space and idle memory
  • Average CPU load for the previous 1 minute, 5 minutes, and 15 minutes
  • Downlink and uplink speeds of Network Connections
  • Total number of processors and their active status
  • Hard Disk I/O-related (read/write) speed details
  • Disk usage of the current mounted device
  • Process name used for high CPU and memory, and location of related applications
  • Display the current date and time at the bottom
  • Mark processes that consume the most system resources in red

The following is a use of Glances in Ubuntu 13.10:

 

Install Glances on Linux/Unix systems

Although the tool is released late, you can stillRed HatSystem is installed through the EPEL software source. Run the following command on the terminal:

For RHEL/CentOS/Fedora releases
  1. # Yum install-y glances
For Debian/Ubuntu/Linux Mint release $ sudo apt-add-repository ppa: arnaud-hartmann/glances-stable

$ Sudo apt-get update

$ Sudo apt-get install glances

How to Use Glances

First, enter the following command in the terminal:

# Glances

Press'Q'('ESC'And'Ctrl-C'Can also) Exit the Glances terminal. Here is fromUbuntu 13.10Another screenshot:

The default refresh frequency of Glances is1(Seconds), but you can manually define the refresh frequency by specifying parameters on the terminal

# Glances-t 2

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.