84VPS , LNMP, php-cgi 的cpu占用率很高
今天突然发现网站打不开了,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 PRNIVIRTRESSHR S %CPU %MEM TIME+COMMAND
7259 www 18 0 28244 5408 2152 R 90.81.0 1:22.82 php-cgi
7257 www 21 0 4327621m 3628 R8.54.1 1:59.88 php-cgi
再附上php日志 ,php-fpm.log
Apr 15 19:47:24.413841 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 fpm_got_signal(), line 48: received SIGCHLD
Apr 15 19:47:24.414250 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 fpm_got_signal(), line 48: received SIGCHLD
Apr 15 19:47:24.415289 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 fpm_got_signal(), line 48: received SIGCHLD
Apr 15 19:47:24.415857 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 fpm_got_signal(), line 48: received SIGCHLD
Apr 15 19:47:24.416566 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 fpm_pctl_exit(), line 81: exiting, bye-bye!
Apr 15 19:47:26.479771 fpm_unix_init_main(), line 284: getrlimit(nofile): max:65535, cur:65535
Apr 15 19:47:26.480066 fpm_event_init_main(), line 88: libevent: using epoll
Apr 15 19:47:26.480166 fpm_init(), line 52: fpm is running, pid 7254
Apr 15 19:47:26.481083 fpm_children_make(), line 352: child 7255 (pool default) started
Apr 15 19:47:26.481925 fpm_children_make(), line 352: child 7256 (pool default) started
Apr 15 19:47:26.482759 fpm_children_make(), line 352: child 7257 (pool default) started
Apr 15 19:47:26.483585 fpm_children_make(), line 352: child 7258 (pool default) started
Apr 15 19:47:26.484415 fpm_children_make(), line 352: child 7259 (pool default) started
Apr 15 19:47:26.485299 fpm_children_make(), line 352: child 7260 (pool default) started
Apr 15 19:47:26.506969 fpm_children_make(), line 352: child 7261 (pool default) started
Apr 15 19:47:26.507864 fpm_children_make(), line 352: child 7279 (pool default) started
Apr 15 19:47:26.507933 fpm_event_loop(), line 107: libevent: entering main loop 看日志是某个程序执行50秒后挂掉了,建议开慢日志看看哪个程序
而且文件数已经达到最大值了
页:
[1]