Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Common Linux system performance monitoring command     - SQL Server 2008 database synchronization Notes (Database)

- When should I use Angular 2 (Programming)

- Linux System Tutorial: Fix ImportError: No module named wxversion error (Linux)

- Single Instance ASM under CRS-4124, CRS-4000 error handling (Database)

- Java input and output common class Scanner (Programming)

- error no.2013 lost connection Tom with SQLServer during query (Database)

- Linux, how to filter, split, and merge pcap file (Linux)

- Getting Started with Linux system to learn: how to install the Shrew Soft IPsec VPN on Linux (Linux)

- Linux compression and decompression command (Linux)

- tcpdump Linux system security tools (Linux)

- To add the Oracle JDBC driver in Maven repository (Linux)

- Android Qemu GPS module (Programming)

- CentOS 6.5 can not connect to the network under VMware (Linux)

- After Ubuntu Password Forgot your way back (Linux)

- Linux Routine Task Scheduler (Linux)

- BusyBox making the file system (Linux)

- Linux5.8 installed phpMyAdmin was unable to issue related php-mcrypt (Database)

- How to add two-factor authentication for Linux systems SSH (Linux)

- Linux Command-line MySQL summary (Database)

- Hunk / Hadoop: Performance Best Practices (Server)

 
         
  Common Linux system performance monitoring command
     
  Add Date : 2017-01-08      
         
         
         
  Common Linux system performance monitoring command

Monitor CPU usage

Use the following command:

[Root @ localhost ~] # gnome-system-monitor
It will appear graphical tools GNOME System Monitor

Monitor CPU scheduler run queue

You can use the vmstat command linux

vmstat is a Virtual Meomory Statistics (virtual memory statistics) acronym, is a real-time system monitoring tools. By using this command knlist subroutines and / dev / kmen pseudo device driver to access the data, output print information directly on the screen. vmstat feedback with the CPU-related information, including:
(1) the number of tasks running
(2) use of the CPU
(3) CPU receives an interrupt number
(4) the number of context switches occur

The following describes only the CPU-related parameters Vmstat

vmstat The syntax is as follows:

vmstat [delay [count]]

Parameters have the following meaning

When there is no argument, vmstat averages after the system starts to display all the information. When there is delay, the average information of the first line of information from the system since the start. From the second line, the average output information before a delay time period. When the system has multiple CPU, the output is the average of all CPU.

total_cur = user + system + nice + idle + iowait + irq + softirq

total_pre = pre_user + pre_system + pre_nice + pre_idle + pre_iowait + pre_irq + pre_softirq

total = total_cur - total_pre

[Root @ localhost ~] # vmstat

Monitoring locks Competition

Use sysstat package pidstat command to monitor

[Root @ localhost ~] # pidstat
Results are as follows:

Linux 2.6.32-431.el6.x86_64 (localhost.localdomain) 05/07/15 _x86_64_ (1 CPU)

09:58:18 PID% usr% system% guest% CPU CPU Command
09:58:18 1 0.00 0.00 0.00 0.00 0 init
09:58:18 4 0.00 0.00 0.00 0.00 0 ksoftirqd / 0

......

09:58:18 37143 0.00 0.00 0.00 0.00 0 dbus-launch
09:58:18 37144 0.00 0.00 0.00 0.00 0 dbus-daemon
09:58:18 37268 0.00 0.00 0.00 0.00 0 fprintd
09:58:18 37272 0.00 0.00 0.00 0.00 0 pidstat

Monitoring network I / O utilization

nicstat originally displayed NIC traffic tools under Solaris platforms, Tim Cook porting it to a linux platform

First installed, the source here, the version used here is 1.92.

Make installation environment:

yum install gcc gcc-c ++ make automake autoconf -y
Since nicstat dependent 32 bit glibc package, so

yum install libgcc.i686 glibc.i686 glibc-devel.i686 -y
Download the file and install it:

# Wget -c http://nchc.dl.sourceforge.net/project/nicstat/nicstat-1.92.tar.gz
# Tar zxvf nicstat-1.92.tar.gz
# Cd nicstat-1.92
# Cp Makefile.Linux Makefile
# Uname -m
[Root @ localhost nicstat-1.92] # make
gcc -O3 -m32 nicstat.c -o nicstat
nicstat.c: 99: 1: warning: "DUPLEX_UNKNOWN" redefined
In file included from nicstat.c: 84:
/usr/include/linux/ethtool.h:691:1: warning: this is the location of the previous definition
mv nicstat `./nicstat.sh --bin-name`

Disk I / O utilization

iostat [-t] [-c] [interval [count]]

When there is no parameter, iostat the mean after all of the information display system starts. Meaning CPU-related output

total_cur = user + system + nice + idle + iowait + irq + softirq

total_pre = pre_user + pre_system + pre_nice + pre_idle + pre_iowait + pre_irq + pre_softirq

total = total_cur - total_pre

When interval, the average information of the first line of information from the system since the start. From the second line, the output is the average interval information before a period of time.

Use iostat command

[Root @ localhost ~] # iostat
Results are as follows:

Linux 2.6.32-431.el6.x86_64 (localhost.localdomain) 05/07/15 _x86_64_ (1 CPU)

avg-cpu:% user% nice% system% iowait% steal% idle
6.12 0.00 1.35 2.35 0.00 90.19

Device: tps Blk_read / s Blk_wrtn / s Blk_read Blk_wrtn
sda 6.03 267.11 272.53 26904430 27450404
     
         
         
         
  More:      
 
- Linux --- process tracking (Linux)
- These days have been tossing in the Linux under the ASP.NET 5, on the next in the other operating systems in the ASP.NET 5 or. NET applications, in order to complete the MS VM (CoreCLR) run is not far Reach, the effect of the application.

Cur
(Server)
- Android components series Activity (Programming)
- Security: Unix operating system intrusion tracking Strikes Back (Linux)
- Mysql binlog resolve the garbage problem decryption (Database)
- ELKstack log analysis platform (Server)
- Guide: Trickle restrict application bandwidth usage (Linux)
- Upgrading to Debian 7.6 glibc 2.15 (Linux)
- Let your PHP 7 faster the Hugepage (Linux)
- Linux (CentOS) directory file management and file system file compression packing (Linux)
- Linux Getting Started Tutorial: / var / spool / clientmqueue fill the root directory (Linux)
- Compile and install GCC 4.8.1 + GDB 7.6.1 + Eclipse in CentOS 6.4 in (Linux)
- CentOS 6.6 command-line automatic completion (Linux)
- RHEL6.4 x86_64 build SVN service (Server)
- The basic principles of AIX system security (Linux)
- Analysis of MySQL High Availability (Database)
- Linux Creating a new user error Creating mailbox file: File exists (Linux)
- Linux RAID Set RAID 10 or 0 + 1 (Linux)
- Python virtual environment: Virtualenv (Linux)
- How to install open source ITIL portal iTOP on CentOS 7 (Server)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.