2015/04/15 Daily System Management

Source: Internet
Author: User

First, monitoring system status

[Email protected] ~]# W

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6B/7B/wKiom1Uuf7mTOoTvAACUm2vvoNw058.jpg "title=" 1.png " alt= "Wkiom1uuf7mtootvaacum2vvonw058.jpg"/>

10:36:52 = Current time of the system;

Up 11:47 = To run for 0 days and 11 hours;

1 user = 1 users are currently logged in;

Load average = loads;

The first 0.00 indicates how many processes use the CPU in 1 minutes, and the load is too high when the number is larger than the CPU box;

The second 0.00 indicates how many processes use the CPU in 5 minutes, and the load is too high when the number is larger than the CPU box;

The third 0.00 indicates how many processes use the CPU in 15 minutes, and the load is too high when the number is larger than the CPU box;

from = = Login IP;

[Email protected] ~]# Vmstat 1 #每秒钟显示一次, showing 10 ends;

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6B/77/wKioL1UugR-S8wXsAAIjIHiuoOw351.jpg "title=" 2.png " alt= "Wkiol1uugr-s8wxsaaijihiuoow351.jpg"/>

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "spacer.gif"/>r = number of processes that run and wait for CPU time slices, if long is larger than the number of server CPUs, it indicates that the CPU is not enough.

b = Indicates the number of processes waiting for the resource, such as waiting for I/O, memory, etc. If the value of this column is less than 1 for a long time, you need to pay attention to it;

Si = The amount of memory entered by the swap area;

so = the amount of memory to enter the swap area;

BI = The amount of data read from a block device (read disk);

Bo = amount of data written from a block device (write disk);

in = number of interrupts per second, including clock terminals;

CS = The number of context switches per second;

WA = Indicates the percentage of CPU time consumed by I/O waits;

[[email protected] ~]# ab-n 10000-c ' URL '

AB + Apache self-brought pressure test tool;

-N-= Request 10,000 times;

-C + = 100 per concurrent;

[email protected] ~]# top #动态监控进程所占用系统资源

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6B/7B/wKiom1Uuf9ajWez3AAH9bdiFpS4246.jpg "title=" 3.png " alt= "Wkiom1uuf9ajwez3aah9bdifps4246.jpg"/>

Tasks = Total number of processes

1 running = number of running processes

Sleeping = number of dormant processes

0 stopped = Stop process count

0 Zombie = Zombie Process number

Display the number of CPU boxes by the number ' 1 ';

Press Shitf+m to view memory utilization;

[Email protected] ~]# top-c #显示完整的COMMAND; [Email protected] ~]# TOP-BN1 #查看完top自动退出; [Email protected] ~]# ps-l

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6B/77/wKioL1UugUSD2VJ8AACilRcdu-g176.jpg "title=" 4.png " alt= "Wkiol1uugusd2vj8aacilrcdu-g176.jpg"/>

[Email protected] ~]# Ps-aux | Head-5 #查看进程

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6B/7B/wKiom1Uuf_iBKqDiAAE1JztWai8587.jpg "title=" 5.png " alt= "Wkiom1uuf_ibkqdiaae1jztwai8587.jpg"/>

PID = PID, this ID is very useful, in Linux kernel management process relies on the PID to identify and manage a process, such as I want to terminate a process, then kill PID, sometimes killed, then use kill-9 pid.

STAT = Indicates the status of the process, and the process is divided into the following

D: A process that cannot be interrupted (usually I/O)

R: Running Process

S: The process has been interrupted and most of the processes in the system are in this state

T: A process that has been stopped or paused

X: A process that has died

Z: Zombie process, can not kill, killed the garbage process, the system a small resource, but it does not matter, if too many problems

<: high-priority process

N: Low-priority process

L: Memory is locked in memory paging

S: Main thread

L: Multithreaded Process

+: Process in the foreground

[Email protected] ~]# free-m #查看系统内存使用情况

Free in K,-M in M,-G in units

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6B/7B/wKiom1UugAGxDC3JAACcijl8QR8147.jpg "title=" 6.png " alt= "Wkiom1uugagxdc3jaaccijl8qr8147.jpg"/>

MEM (total)-Memory totals

MEM (used) = memory already allocated

MEM (free) = unallocated memory

MEM (buffers) = System allocated but not used buffers

MEM (cached) = System allocated but not used cache

Buffers/cache (user) = The total amount of buffers and caches actually used, as well as the actual memory used

Buffers = = is going to be written to disk

The cache = is read from the disk

[Email protected] ~]# Netstat-an | Head-4 #查看端口

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6B/7B/wKiom1UugAiDasZKAADkH7JOCPM359.jpg "title=" 7.png " alt= "Wkiom1uugaidaszkaadkh7jocpm359.jpg"/>

[Email protected] ~]# yum-y install Sysstat #没有sar则安装此包; [Email protected] ~]# sar-n DEV #查看网卡流量;

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6B/77/wKioL1UugWay3usRAAHEJnIM47M283.jpg "title=" 8.png " alt= "Wkiol1uugway3usraahejnim47m283.jpg"/>

[Email protected] ~]# sar-q #查看历史负载; [Email protected] ~]# Sar-b #查看磁盘读写

This article is from the Chen. "Blog, be sure to keep this provenance http://chenxiaojian.blog.51cto.com/9345444/1633200

2015/04/15 Daily System Management

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.