php Apache 报500

想执行一个脚本。相对比较长时间。但到7分钟左右就报500了;
以下是error.log文件打印出来的。
已经在httpd.conf加上
<IfModule mpm_winnt_module>

ThreadStackSize 8888888

</IfModule>
网上搜的办法没法解决

[Fri Dec 14 17:45:56.047810 2018] [mpm_winnt:crit] [pid 14040:tid 692] AH02538: Child: Parent process exited abruptly. Child process is ending
[Fri Dec 14 17:46:00.115917 2018] [core:warn] [pid 17840:tid 788] AH00098: pid file D:/phpstudy/PHPTutorial/Apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Dec 14 17:46:00.228614 2018] [mpm_winnt:notice] [pid 17840:tid 788] AH00455: Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9 configured -- resuming normal operations
[Fri Dec 14 17:46:00.228614 2018] [mpm_winnt:notice] [pid 17840:tid 788] AH00456: Server built: Jul  1 2016 16:42:20
[Fri Dec 14 17:46:00.228614 2018] [core:notice] [pid 17840:tid 788] AH00094: Command line: 'D:\\phpstudy\\PHPTutorial\\Apache\\bin\\httpd.exe -d D:/phpstudy/PHPTutorial/Apache'
[Fri Dec 14 17:46:00.295041 2018] [mpm_winnt:notice] [pid 17840:tid 788] AH00418: Parent: Created child process 16448
[Fri Dec 14 17:46:01.364642 2018] [mpm_winnt:notice] [pid 16448:tid 756] AH00354: Child: Starting 150 worker threads.
阅读 2.9k
3 个回答

你的php版本 和 是线程版本?

修改module后重启apache了吗,另外检查一下代码变量有没有正常销毁。
以及设置大一点的内存空间:ini_set('memory_limit','1024M');

你执行这么长时间的脚本 最好是不要再直接关联到apache,不太符合web的场景,如果只是查看脚本执行的结果,可以将脚本执行的结果写到数据库,另外写个接口查询数据库,来观测脚本的执行状态

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题