within 16 indicates that the machine runs very stable and smooth. If the load is more than 16, it indicates that the server is running a certain amount of pressure.
Under the top command, press SHIFT + C to sort the process from large to small by CPU usage , pressing shift+ "P" to sort the process from large to small by memory usage , and it is easy to locate which services are consuming higher CPU and memory.
Simply having the top command is not enough because it only shows CPU and memory usag
Linux system monitoring has the following commands:
Uptime: Display system load condition
Mpstat: Show CPU performance
Free: Displaying memory usage
Vmstat: Displaying virtual memory usage
Iostat: Show System I/O activity
Netstat: Displays the activity of the network
DF/DU: Displaying disk usage
1. Uptime
fdipzone@ubuntu:~$ uptime
00:06:00 up min, 2 users, load average:0.00, 0.03, 0.07
00:06:00 indicates the current time
32min indicat
of 225 processes are currently )
Line 3rd
Cpu (s): 1.8%us, 0.9%sy, 0.0%ni, 97.1%id, 0.1%wa, 0.0%hi, 0.1%si, 0.0%st
CPU Usage
US: User process consumes CPU percentage
SY: Kernel process consumes CPU percentage
NI: process that has changed precedence consumes CPU percentage
ID: Percentage of idle CPU
Wa:io The waiting process consumes CPU percentage
Hi: Percentage of hard interrupts consuming CPU
Si: The percentage of CPU that the soft interrupt consumes
St:
Line 4th
mem:32879852k Total, 2363304
permissionsWA--iowait amountoftimethecpuhasbeenwaitingfor I/O to complete.Find which disk is being writtenThe top command above explains I/O wait from a whole, but does not indicate which disk is affected, and to know which disk is causing the problem, we use another command Iostat command[[email protected] ~]# iostat-x 2 5Linux 3.10.0-514.el7.x86_64 (localhost.localdomain) March 03, 2017 _x86_64_
, and the large WA value should consider balancing the disk load, can be combined with the Iostat output to analyze. 2.2: View disk load IostatThe disk IO information is counted every 2 seconds until you press CTRL + C to terminate the program, and the-D option represents the statistics disk information,-K is displayed in kilobytes per second, and-T requires time information to be printed, and 2 indicates output every 2 seconds. The disk IO load statu
During this fall's Ubuntu developer summit, the main questions discussed are: Where will Ubuntu be applied in the future. This topic was answered soon. In November 1, the founder of Ubuntu published a blog post saying that the company plans to push Ubuntu to tablets and smartphones. The message was sent and shocked the mobile world. Another player in the mobile industry has become increasingly competitive. Canonical plans to push Ubuntu to
cells are more readily processed from the adipose tissues, and the energy from the same is harnessed more quickly. apart from this, Clenbuterol has shown to reverse the effects of insulin, which facilitates the process of the breakdown of glycogen into glucose. clenbuterol also increases the fat burning rate in the body, or in other words speeds up the metabolism rate of the body. this feature is especially singled out, when Clenbuterol is administered exclusively as a weight loss drug.Random T
Installation Method
When installing a software
Yum-y install httpd
When installing similar software
Yum-y install httpd *
When multiple non-similar software are installed
Yum-y install httpd php-gd mysql
When a software is uninstalled
Yum-y remove httpd
When multiple similar software are uninstalled
Yum-y remove httpd *
When multiple non-similar software are uninstalled
Yum-y remove httpd php-gd mysql
There is also a great usage
If I want to execute the
How Yum installs and uninstalls software in CentOSInstallation methodWhen installing a softwareYum-y Install httpdWhen installing multiple similar softwareYum-y Install httpd*When installing multiple non-similar softwareYum-y Install httpd php php-gd mysqlWhen uninstalling a softwareYum-y Remove httpdWhen uninstalling multiple similar softwareYum-y Remove httpd*When uninstalling multiple non-similar softwareYum-y Remove httpd php php-gd MySQLAnd there's a very good usage.If I want to execute
can use the CPU load analysis tool to monitor the load time.
17. Learn 5 Linux performance commands
You can use several commands to manage the Linux system performance. The following lists the five most commonly used Linux performance commands, including top, vmstat, iostat, free, and sar, they help system administrators quickly solve performance problems.
(1) top
The Top command not only displays the tasks of the current kernel service, but also di
to increase the pressure.
Next, we will take the opportunity of this performance test to introduce several useful commands. After starting, we can use the top command on the application server to observe its CPU utilization, press the number key 1, view the utilization of each CPU in detail. Ideally, we should be able to see a certain amount of pressure at this time.You can also use the vmstat command, for example, vmstat 1 30 mark, to print statistics every second for 30 seconds.
The printed r
ArticleDirectory
Iostat
Meminfo and free
Mpstat
Netstat
Nmon
Pmap
PS and pstree
SAR
Strace
Tcpdump
Top
Uptime
Vmstat
Wireshark
Original article link
If you want to know what your server is doing, you need to know some basic commands. Once you are proficient in these commands, you are a professional Linux system administrator.
Some Linux distributions provide the GUIProgramFor example, SuSE Lin
overall speed drop and solve it. The following are some basic skills to find out the key bottlenecks of the system: ● when a large application program, for example, when OpenOffice and Firefox run at the same time, the computer may start to slow down and the memory insufficiency may increase. ● If the startup is really slow, it may take a long loading time for the application to start for the first time. Once the application is started, it will run normally. Otherwise, it is likely that the har
0.00 0.00 0.00 0 running-daemon09:58:18 37268 0.00 0.00 0.00 0 fprintd09:58:18 37272 0.00 0.00 0.00 0 pidstatMonitor network I/O usage
Nicstat was originally used to display network card traffic on the Solaris platform. Tim Cook transplanted it to the linux platform.
First install it. The source code is here. The version used here is 1.92.
Install the make environment:
yum install gcc gcc-c++ make automake autoconf -y
Because nicstat depends on 32 bit glibc package
yum install libgcc.i686 glibc
How to install and uninstall software in Centos yumInstallation MethodWhen installing a softwareYum-y install httpdWhen installing similar softwareYum-y install httpd *When multiple non-similar software are installedYum-y install httpd php-gd mysqlWhen a software is uninstalledYum-y remove httpdWhen multiple similar software are uninstalledYum-y remove httpd *When multiple non-similar software are uninstalledYum-y remove httpd php-gd mysql also has a very good usage. If I want to execute the
disk tracking tool in Linux can use vmstat,The most important columns are bi and bo. They monitor the movement of input and output blocks with disk subsystems,It is important to have a baseline to mark changes;Iostat commandPerformance problems can be encountered when too program files are opened, read and writtenTo, then closed repeatedly. This cocould become apparent as seek times (the time it takesMove to the exact track where the data is stored)
example
For Htop installation, read: Install Htop in Linux (Linux Process Monitoring)
7. Iotop-Linux disk monitoring I/O
The Iotop command is also very similar to the top command and Htop program, but it has the function of monitoring and displaying real-time disk I/O and process statistics. This tool is useful when searching for specific processes and using a large number of disk read/write processes.
# iotop
For information about how to install and use Iotop, see install iotop in Linux.
8.
, the system seems to have more memory than the actual memory. The Linux system supports Virtual Memory, that is, the disk is used as the RAM Extension to expand the available memory.
(1) monitors memory usage in real time in Linux systems. Generally, the free command is used to monitor memory usage.
(2) Use the vmstat command to monitor the virtual memory usage, processes, and CPU activity of the system.
# vmstat 3 3
4. Monitor CPU usage
In Linux, top and mpstat tools are used to monitor CPU 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.