- 论坛徽章:
- 0
|
机子上跑的应用apache+tomcat+mysql+java,最近发现服务器cpu和内存都不正常,请大牛们指点下
top - 18:03:56 up 3 days, 40 min, 3 users, load average: 2.16, 2.29, 2.28
Tasks: 102 total, 1 running, 101 sleeping, 0 stopped, 0 zombie
Cpu(s): 46.0%us, 0.4%sy, 0.0%ni, 53.1%id, 0.0%wa, 0.0%hi, 0.4%si, 0.0%st
Mem: 8166056k total, 6438312k used, 1727744k free, 142324k buffers
Swap: 8193140k total, 10872k used, 8182268k free, 1411288k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
538 root 23 0 6910m 4.2g 9164 S 184.1 54.1 1133:10 java
506 mysql 15 0 718m 268m 4640 S 2.3 3.4 64:02.35 mysqld
1 root 15 0 10348 560 528 S 0.0 0.0 0:00.86 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/0
4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
5 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/1
6 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/1
7 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/1
[root@localhost ~]# free -m
total used free shared buffers cached
Mem: 7974 6287 1687 0 138 1378
-/+ buffers/cache: 4770 3204
Swap: 8001 10 7990
[root@localhost ~]# vmstat 3
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
r b swpd free buff cache si so bi bo in cs us sy id wa st
3 0 10872 1727900 142352 1411444 0 0 1 79 32 5 35 3 62 1 0
1 0 10872 1727900 142352 1411452 0 0 0 423 1705 2486 40 1 58 1 0
1 0 10872 1728032 142352 1411460 0 0 0 315 1546 2103 38 1 60 1 0
1 0 10872 1727900 142352 1411460 0 0 0 9 1468 1918 40 1 60 0 0
3 0 10872 1727776 142356 1411472 0 0 0 312 1574 1909 39 1 60 1 0
cpu是四核E5606 |
|