VPS侦探论坛

 找回密码
 注册
查看: 4690|回复: 1

84VPS , LNMP, php-cgi 的cpu占用率很高

[复制链接]
发表于 2014-4-15 20:05:33 | 显示全部楼层 |阅读模式

今天突然发现网站打不开了,top查看,发现CPU占用完了 , 发现时  php-cgi  的问题 !目前还没解决!军哥帮忙看看

参考过这个方法修改,没用
https://bbs.vpser.net/thread-1654-1-1.html



Tasks:  33 total,   9 running,  24 sleeping,   0 stopped,   0 zombie                                                               
Cpu0  :  8.6%us, 91.4%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st                                                      
Mem:    524800k total,   185500k used,   339300k free,        0k buffers                                                            
Swap:        0k total,        0k used,        0k free,        0k cached                                                            

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                               
7259 www       18   0 28244 5408 2152 R 90.8  1.0   1:22.82 php-cgi                                                               
7257 www       21   0 43276  21m 3628 R  8.5  4.1   1:59.88 php-cgi  



再附上php日志 ,php-fpm.log



Apr 15 19:47:24.413841 [WARNING] fpm_children_bury(), line 215: child 7220 (pool default) exited on signal 15 SIGTERM after 50.253477 seconds from start
Apr 15 19:47:24.414185 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Apr 15 19:47:24.414250 [WARNING] fpm_children_bury(), line 215: child 7219 (pool default) exited on signal 15 SIGTERM after 50.258876 seconds from start
Apr 15 19:47:24.415226 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Apr 15 19:47:24.415289 [WARNING] fpm_children_bury(), line 215: child 7218 (pool default) exited on signal 15 SIGTERM after 50.260944 seconds from start
Apr 15 19:47:24.415724 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Apr 15 19:47:24.415857 [WARNING] fpm_children_bury(), line 215: child 7217 (pool default) exited on signal 15 SIGTERM after 50.262358 seconds from start
Apr 15 19:47:24.416476 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
Apr 15 19:47:24.416566 [WARNING] fpm_children_bury(), line 215: child 7215 (pool default) exited on signal 15 SIGTERM after 50.264775 seconds from start
Apr 15 19:47:24.416656 [NOTICE] fpm_pctl_exit(), line 81: exiting, bye-bye!
Apr 15 19:47:26.479771 [NOTICE] fpm_unix_init_main(), line 284: getrlimit(nofile): max:65535, cur:65535
Apr 15 19:47:26.480066 [NOTICE] fpm_event_init_main(), line 88: libevent: using epoll
Apr 15 19:47:26.480166 [NOTICE] fpm_init(), line 52: fpm is running, pid 7254
Apr 15 19:47:26.481083 [NOTICE] fpm_children_make(), line 352: child 7255 (pool default) started
Apr 15 19:47:26.481925 [NOTICE] fpm_children_make(), line 352: child 7256 (pool default) started
Apr 15 19:47:26.482759 [NOTICE] fpm_children_make(), line 352: child 7257 (pool default) started
Apr 15 19:47:26.483585 [NOTICE] fpm_children_make(), line 352: child 7258 (pool default) started
Apr 15 19:47:26.484415 [NOTICE] fpm_children_make(), line 352: child 7259 (pool default) started
Apr 15 19:47:26.485299 [NOTICE] fpm_children_make(), line 352: child 7260 (pool default) started
Apr 15 19:47:26.506969 [NOTICE] fpm_children_make(), line 352: child 7261 (pool default) started
Apr 15 19:47:26.507864 [NOTICE] fpm_children_make(), line 352: child 7279 (pool default) started
Apr 15 19:47:26.507933 [NOTICE] fpm_event_loop(), line 107: libevent: entering main loop
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2014-4-16 12:00:30 | 显示全部楼层


看日志是某个程序执行50秒后挂掉了,建议开慢日志看看哪个程序
而且文件数已经达到最大值了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-14 22:21 , Processed in 0.025492 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表