我有一个错误。他随机出现。工作可能2-3天是正常但在一些事件后开始高负荷CPU screen
当它出现时我会在php-fpm上进行操作
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=695, si_uid=33, si_status=0, ...} ---
getpid() = 10154
write(8, "C", 1) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigreturn() = 56
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f5c688b6a10) = 707
clock_gettime(CLOCK_MONOTONIC, {760605, 823753717}) = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=701, si_uid=33, si_status=0, si_utime=0, si_stime=0} ---
write(8, "C", 1) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigreturn() = 140034873437968
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=698, si_uid=33, si_status=0, si_utime=0, si_stime=0} ---
write(8, "C", 1) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigreturn() = 140034873437968
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED, NULL) = 32743
clock_gettime(CLOCK_MONOTONIC, {760605, 824399822}) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f5c688b6a10) = 708
clock_gettime(CLOCK_MONOTONIC, {760605, 825037147}) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED, NULL) = 32744
clock_gettime(CLOCK_MONOTONIC, {760605, 825227552}) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f5c688b6a10) = ? ERESTARTNOINTR (To be restarted)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=702, si_uid=33, si_status=0, si_utime=0, si_stime=0} ---
getpid() = 10154
write(8, "C", 1) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigreturn() = 56
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f5c688b6a10) = 710
clock_gettime(CLOCK_MONOTONIC, {760605, 827677677}) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED, NULL) = 32747
clock_gettime(CLOCK_MONOTONIC, {760605, 827886974}) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f5c688b6a10) = 711
clock_gettime(CLOCK_MONOTONIC, {760605, 828755896}) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED, NULL) = 32748
clock_gettime(CLOCK_MONOTONIC, {760605, 828921349}) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f5c688b6a10) = 712
clock_gettime(CLOCK_MONOTONIC, {760605, 829779218}) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED, NULL) = 32749
clock_gettime(CLOCK_MONOTONIC, {760605, 829951780}) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f5c688b6a10) = 713
clock_gettime(CLOCK_MONOTONIC, {760605, 830916994}) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG|WSTOPPED, NULL) = 32750
clock_gettime(CLOCK_MONOTONIC, {760605, 831123550}) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f5c688b6a10) = ? ERESTARTNOINTR (To be restarted)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=707, si_uid=33, si_status=0, si_utime=0, si_stime=0} ---
getpid() = 10154
write(8, "C", 1) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigreturn() = 56
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f5c688b6a10) = ? ERESTARTNOINTR (To be restarted)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=708, si_uid=33, si_status=0, si_utime=0, si_stime=0} ---
getpid() = 10154
write(8, "C", 1) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigreturn() = 56
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f5c688b6a10) = ? ERESTARTNOINTR (To be restarted)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=710, si_uid=33, si_status=0, si_utime=0, si_stime=0} ---
更新内核无法解决此问题? 仅帮助重启php-fpm进程 你能给我什么建议?感谢
答案 0 :(得分:0)
这是因为你的套接字试图在他不能写的时候写:
write(8, "C", 1) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigreturn() = 56
由于您没有任何更改源代码的方法,因此您需要降级您的php版本,看看它是否能够在没有此套接字问题的情况下完成任务。
查看更多: