File name : error.log
***********************************************************************
[Wed Jul 04 13:47:24.134888
2018] [mpm_winnt:error] [pid 7676:tid 2184] AH00326: Server ran out of threads to
serve requests. Consider raising the ThreadsPerChild setting
****************************************************************************
Description: This above error
indicates, requests from users are not getting any thread to process further.
Solution: we have to increase
a worker threads on “httpd-mpm.conf” file.
#######################################
<IfModule
mpm_winnt_module>
ThreadLimit 600
ThreadsPerChild 600
MaxRequestsPerChild
0
</IfModule>
#######################################
Means,1 parent process, exactly 1 child process with many threads, threads handle requests.
The MaxClients is optimal at
200 * the count of CPU cores for the prefork mpm & 300 * the count of CPU cores for the workermpm.
If you were not using this “httpd-mpm.conf “file on apache server.
By, default it will start with its, 64 worker threads.
***********************************************************************
mpm_winnt:notice] [pid 8296:tid 372] AH00354: Child: Starting 64 worker threads.
***********************************************************************
For more info Ref link :
https://httpd.apache.org/docs/2.4/mod/mpm_common.html
https://httpd.apache.org/docs/2.4/mod/worker.html
Thanks :
No comments:
Post a Comment