10:18:06 AM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle 10:18:07 AM all 0.000.000.000.000.000.000.000.000.00100.00 Average: all 0.000.000.000.000.000.000.000.000.00100.00
// 检查%idle是否过低(比如小于5%)
内存空间
1 2 3 4
[root@caoxl ~]# free total used free shared buff/cache available Mem: 1015436372240758962660567300436428 Swap: 000
检查free值是否过低 也可以用 # cat /proc/meminfo
swap空间 // free
检查swap used值是否过高 如果swap used值过高,进一步检查swap动作是否频繁:
1 2 3 4 5 6 7 8
[root@caoxl ~]# vmstat 1 5 procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 400758362162563512200013240010000 000754922162563512560000306362109900 0007555621625635119200002823270010000 0007556021625635099600003263470010000 000760242162563511520000368369119800
[root@caoxl ~]# sar -n DEV Linux 3.10.0-862.9.1.el7.x86_64 (caoxl) 11/08/2018_x86_64_ (1 CPU)
12:00:02 AM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s 12:10:01 AM eth0 100.3746.9886.9883.420.000.000.00 12:10:01 AM lo 0.000.000.000.000.000.000.00 12:20:01 AM eth0 187.65100.08149.14170.110.000.000.00 12:20:01 AM lo 0.000.000.000.000.000.000.00 12:30:01 AM eth0 85.3649.5966.0978.490.000.000.00 12:30:01 AM lo 0.000.000.000.000.000.000.00 12:40:01 AM eth0 0.220.190.020.030.000.000.00 12:40:01 AM lo 0.000.000.000.000.000.000.00 12:50:01 AM eth0 0.270.280.020.050.000.000.00 12:50:01 AM lo 0.000.000.000.000.000.000.00 01:00:01 AM eth0 0.210.210.020.040.000.000.00 01:00:01 AM lo 0.000.000.000.000.000.000.00 01:10:01 AM eth0 0.210.180.010.020.000.000.00 01:10:01 AM lo 0.000.000.000.000.000.000.00 01:20:01 AM eth0 0.250.210.020.040.000.000.00 01:20:01 AM lo 0.000.000.000.000.000.000.00
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 10097868915564543880013240010000 00097868915564543800000266357109900 000977449156045437600120276375019720 000977449156045438800002623450010000 00097728915604543880000259337109900
Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration.
If you want to list systemd services use 'systemctllist-unit-files'. Toseeservicesenabledonparticulartargetuse 'systemctllist-dependencies [target]'.
aegis agentwatch mysql network nginx php-fpm shadowsocks