Tôi vừa mua cái VPS, chỉ host nhõn 2 cái web mà web cứ chết lên chết xuống, SSH, Top thì thành thế này
top - 05:22:08 up 9 days, 12:05, 1 user, load average: 34.51, 29.38, 19.35
Tasks: 311 total, 14 running, 297 sleeping, 0 stopped, 0 zombie
Cpu(s): 90.4%us, 9.6%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1572864k total, 1567052k used, 5812k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
26198 mysql 16 0 77884 37m 3448 R 10.0 2.5 0:00.70 mysqld
30058 mysql 16 0 77884 37m 3448 R 10.0 2.5 0:00.30 mysqld
28364 mysql 16 0 77884 37m 3448 D 9.6 2.5 0:00.68 mysqld
30048 mysql 16 0 77884 37m 3448 R 9.6 2.5 0:00.29 mysqld
30176 mysql 16 0 77884 37m 3448 S 7.0 2.5 0:00.39 mysqld
25914 mysql 16 0 77884 37m 3448 D 6.6 2.5 0:00.54 mysqld
30175 mysql 16 0 77884 37m 3448 S 4.3 2.5 0:00.40 mysqld
29729 mysql 16 0 77884 37m 3448 D 4.0 2.5 0:00.26 mysqld
17525 ht 16 0 41028 25m 5048 S 3.3 1.6 0:00.68 php-cgi
7643 avtfo 16 0 39540 25m 5164 S 3.0 1.7 0:01.53 php-cgi
9547 ht 16 0 40516 25m 5284 S 2.0 1.7 0:01.42 php-cgi
13929 ht 16 0 41772 25m 5280 S 2.0 1.7 0:01.30 php-cgi
28583 ht 16 0 40316 22m 4656 S 2.0 1.5 0:00.50 php-cgi
5824 avtfo 15 0 41532 26m 5300 S 1.7 1.7 0:01.26 php-cgi
11328 avtfo 16 0 42696 26m 5296 S 1.7 1.7 0:01.29 php-cgi
19488 avtfo 16 0 40480 25m 5268 S 1.7 1.6 0:00.90 php-cgi
15404 avtfo 15 0 41544 26m 5300 S 1.3 1.7 0:00.62 php-cgi
Thấy mọi người ở đây đều chỉ có load everage dưới 1, của tôi lên đến tận hơn 30, rồi CPU usage thì tận 90%, web chết liên tục.
Không hiểu lý do gì nữa.
Free -m thì là thế này
[root@server1 ~]# free -m
total used free shared buffers cached
Mem: 1536 1040 495 0 0 0
-/+ buffers/cache: 1040 495
Swap: 0 0 0
Đã optimize trong etc/my.cnf mà chả ăn thua
Chán quá, xin các đồng chí cho ý kiến giúp
Bookmarks