the server uses Aliyun, and PhpStudy, is installed. Every few hours, the website cannot be accessed, and this error occurs on the server.
but PhpStudy did not report an error to exit, as long as you click "close Program" to end this window, the site will be able to resume access.
I tried the following ways, but none of them solved the problem:
- upgrade server memory from 2GB to 4GB;
- switch the PHP version to 7.0.12 in PhpStudy;
- increase the ThreadsPerChild value in X:phpStudyPHPTutorialApacheconfextrahttpd-mpm.conf to 1500
< IfModule mpm_winnt_module >
ThreadsPerChild 1500
MaxRequestsPerChild 3000
< / IfModule >
- change the query_cache_ size value in X:phpStudyPHPTutorialMySQLmy.ini to 256m
query_cache_size=256M
- respectively try to copy the following three files to CVM Windows system 32:
D:phpStudyPHPTutorialMySQLliblibmysql.dll
D:phpStudyPHPTutorialphpphp-5.2.17libmysql.dll
D:phpStudylibmysql.dll
the above methods are all relevant solutions from Google, but none of them can solve this problem. The website will still be inaccessible due to an error in a few hours. What"s going on?
error Log (X:phpStudyPHPTutorialApachelogserror.log) related information:
[Sun Apr 15 1515 br 26v 37.318002 2018] [mpm_winnt:notice] [pid 21256:tid 516] AH00363: Child: Terminating 149 threads that failed to exit.
[Sun Apr 15 1515 strong 26v 37.318980 2018] [mpm_winnt:notice] [pid 21256:tid 516] AH00364: Child: All worker threads have exited.
[Sun Apr 151720v 57.704416 2018] [mpm_winnt] Notice] [pid 20736:tid 508] AH00428: Parent: child process 21256 exited with status 3221225477-- Restarting.
[Sun Apr 15 17 AH00428: Parent: child process 20 exited with status 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 AH00428: Parent: child process 20 exited with status 57.966144 2018] [mpm_winnt:notice] [pid 20736:tid 508] AH00456: Server Built: Jul 1 2016 16:42:20
[core:notice] [pid 20736:tid 508] AH00094: Command line:"X:\ phpStudy\ PHPTutorial\ Apache\ bin\ httpd.exe-d phpStudyUniver built: Jul built: Jul 57.971046 2018] [mpm_winnt:notice] [pid 20736:tid 508] AH00418: Parent: Created child process 14368
[PHPTutorialAche2057.971046 2018] [pid 20736:tid 508] AH00418: Parent: Created child process 14368
[PHPTutorialAche2059.030613 2018] [mpm_winnt:notice] [pid 14368:tid 516] AH00354: Child: Starting 150 worker threads.
[Sun Apr 15 17 AH00354: Child: Starting 20 worker threads. 59.047219 2018] [mpm_winnt:error] [pid 14368:tid 3188] AH00326: Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting
there are a large number of
[Fri Apr 20 17 fcgid:error 33 FastCGI process 06.965644 2018] [fcgid:error] [pid 14892:tid 588] FastCGI process 10700 still did not exit, terminating forcefully
the last two lines of error message on the last error:
[Fri Apr 2018: 38 pid 8908:tid 12.859160 2018] [mpm_winnt:notice] [pid 8908:tid 488] AH00363: Child: Terminating 647 threads that failed to exit.
[Fri Apr 2018: 38 pid 8908:tid 12.870901 2018] [mpm_winnt:notice] [pid 8908:tid 488] AH00364: Child: All worker threads have exited.