在 linux apache 服务器(ubuntu 14.04 lts,带有 mpm_prefork 和 mod_php 的 apache 2.4.7)上,我的 PHP 脚本需要很长时间。这些被apache杀死了。
我们调整了 php 设置 (max_execution_time, set_time_limit...)
我们在日志中没有任何跟踪(syslog、apache 访问/错误日志)
我们使用 strace 跟踪了 apache 进程:
2172 is the script process
1939 is the apache main process
....
2172 14:53:01 +++ killed by SIGKILL +++
1939 14:53:01 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=2172, si_status=SIGKILL, si_utime=3067, si_stime=38} ---