10:07:25 AM CPU %usr%nice%sys%iowait%irq%soft%steal%guest%gnice%idle 10:07:26 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
du -cks * | sort -rn | head -n 10
1 2 3 4 5 6 7 8 9 10 11
[root@caoxianliang ~]# du -cks * | sort -rn | head -n 10 669900 total 348556 bin 159544 lib 124740 mysql-test 30000 var 2800 sql-bench 2644 share 732 man 708 include 100 support-files
[root@caoxianliang ~]# sar -n DEV Linux 3.10.0-862.3.2.el7.x86_64 (caoxianliang) 07/23/2018 _x86_64_ (1 CPU)
12:00:01 AM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s 12:10:01 AM eth0 0.140.140.010.040.000.000.00 12:10:01 AM lo 0.000.000.000.000.000.000.00 12:20:01 AM eth0 0.080.100.000.010.000.000.00 12:20:01 AM lo 0.000.000.000.000.000.000.00 12:30:01 AM eth0 0.290.230.020.030.000.000.00 12:30:01 AM lo 0.000.000.000.000.000.000.00 12:40:01 AM eth0 0.260.170.020.020.000.000.00
[root@caoxianliang ~]# vmstat 15 procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 300 108564135436 61422400254170010000 000 108564135436 6142240000118179109900 000 108564135436 61422400001281890010000 000 108564135436 61422400001382080010000 000 108564135436 6142240000128187019900
Note: This output shows SysV services onlyand does notinclude native systemd services. SysV configuration data might be overridden by native systemd configuration.
If you want to list systemd services use 'systemctl list-unit-files'. To see services enabled on particular target use 'systemctl list-dependencies [target]'.
aegis agentwatch mysql network nginx php-fpm shadowsocks