服务器用的是阿里云,安装的是PhpStudy,每过几小时,就会出现网站无法访问的情况,服务器出现这个错误。
但PhpStudy并没有报错退出,只要然后点击“关闭程序”结束这个窗口,网站就能恢复访问。
我尝试了以下方式,但是都没能解决问题:
<IfModule mpm_winnt_module>
ThreadsPerChild 1500
MaxRequestsPerChild 3000
</IfModule>
query_cache_size=256M
D:phpStudyPHPTutorialMySQLliblibmysql.dll
D:phpStudyPHPTutorialphpphp-5.2.17libmysql.dll
D:phpStudylibmysql.dll
以上方式都是Google出来的相关解决方案,但都没能解决这个问题,依旧是过几小时就会报错导致网站无法访问,求教大家是怎么回事?
错误日志(X:phpStudyPHPTutorialApachelogserror.log)相关信息:
[Sun Apr 15 15:26:37.318002 2018] [mpm_winnt:notice] [pid 21256:tid 516] AH00363: Child: Terminating 149 threads that failed to exit.
[Sun Apr 15 15:26:37.318980 2018] [mpm_winnt:notice] [pid 21256:tid 516] AH00364: Child: All worker threads have exited.
[Sun Apr 15 17:20:57.704416 2018] [mpm_winnt:notice] [pid 20736:tid 508] AH00428: Parent: child process 21256 exited with status 3221225477 -- Restarting.
[Sun Apr 15 17:20:57.966144 2018] [mpm_winnt:notice] [pid 20736:tid 508] AH00455: Apache/2.4.23 (Win32) OpenSSL/1.0.2j PHP/5.4.45 configured -- resuming normal operations
[Sun Apr 15 17:20:57.966144 2018] [mpm_winnt:notice] [pid 20736:tid 508] AH00456: Server built: Jul 1 2016 16:42:20
[Sun Apr 15 17:20:57.967120 2018] [core:notice] [pid 20736:tid 508] AH00094: Command line: 'X:\phpStudy\PHPTutorial\Apache\bin\httpd.exe -d D:/phpStudy/PHPTutorial/Apache'
[Sun Apr 15 17:20:57.971046 2018] [mpm_winnt:notice] [pid 20736:tid 508] AH00418: Parent: Created child process 14368
[Sun Apr 15 17:20:59.030613 2018] [mpm_winnt:notice] [pid 14368:tid 516] AH00354: Child: Starting 150 worker threads.
[Sun Apr 15 17:20:59.047219 2018] [mpm_winnt:error] [pid 14368:tid 3188] AH00326: Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting
有大量的:
[Fri Apr 20 17:33:06.965644 2018] [fcgid:error] [pid 14892:tid 588] FastCGI process 10700 still did not exit, terminating forcefully
最近一次出错时的最后两行错误信息:
[Fri Apr 20 18:38:12.859160 2018] [mpm_winnt:notice] [pid 8908:tid 488] AH00363: Child: Terminating 647 threads that failed to exit.
[Fri Apr 20 18:38:12.870901 2018] [mpm_winnt:notice] [pid 8908:tid 488] AH00364: Child: All worker threads have exited.
慕姐8265434
PIPIONE
元芳怎么了
白猪掌柜的
慕哥6287543
潇潇雨雨