We are using apache version 4. Our server we are getting around 8000 concurrent connections. Below is our worker module configuration
<IfModule mpm_worker_module>
ServerLimit 16
StartServers 20
MaxClients 8000
MinSpareThreads 512
MaxSpareThreads 1024
ThreadsPerChild 64
MaxRequestWorkers 1024
MaxConnectionsPerChild 10000
</IfModule>
With the above configuration we are getting below error in apache server error.log
[Mon Nov 12 12:38:58.838952 2018] [mpm_winnt:notice] [pid 3304:tid 480] AH00418: Parent: Created child process 6416
[Mon Nov 12 12:38:59.745235 2018] [jk:warn] [pid 6416:tid 364] No JkLogFile defined in httpd.conf. Using default C:/Apache/logs/mod_jk.log
[Mon Nov 12 12:38:59.917109 2018] [jk:warn] [pid 6416:tid 364] No JkLogFile defined in httpd.conf. Using default C:/Apache/logs/mod_jk.log
[Mon Nov 12 12:38:59.932736 2018] [mpm_winnt:notice] Child: Starting 250 worker threads.
[Mon Nov 12 12:39:06.471238 2018] [mpm_winnt:error] Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting
After that we changed ThreadsPerChild to 100, after that we are getting below error
[Mon Nov 12 12:47:35.837220 2018] [core:notice] [pid 3304:tid 480] AH00094: Command line: 'C:\\Apache\\bin\\httpd.exe -d C:/ApacheWeb'
[Mon Nov 12 12:47:35.837220 2018] [mpm_winnt:notice] [pid 3304:tid 480] AH00418: Parent: Created child process 9188
[Mon Nov 12 12:47:36.821579 2018] [jk:warn] [pid 9188:tid 368] No JkLogFile defined in httpd.conf. Using default C:/ApacheWeb/logs/mod_jk.log
[Mon Nov 12 12:47:37.102834 2018] [jk:warn] [pid 9188:tid 368] No JkLogFile defined in httpd.conf. Using default C:/ApacheWeb/logs/mod_jk.log
[Mon Nov 12 12:47:37.118481 2018] [mpm_winnt:notice] [pid 9188:tid 368] AH00354: Child: Starting 250 worker threads.
[Mon Nov 12 12:48:02.464408 2018] [mpm_winnt:error] [pid 9188:tid 6488] AH00326: Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting
[Mon Nov 12 12:48:10.216397 2018] [mpm_winnt:notice] [pid 7888:tid 364] AH00362: Child: Waiting 30 more seconds for 29 worker threads to finish.
[Mon Nov 12 12:48:43.069214 2018] [mpm_winnt:notice] [pid 7888:tid 364] AH00362: Child: Waiting 0 more seconds for 7 worker threads to finish.
[Mon Nov 12 12:48:43.178567 2018] [mpm_winnt:notice] [pid 7888:tid 364] AH00363: Child: Terminating 7 threads that failed to exit.
[Mon Nov 12 12:48:43.178567 2018] [mpm_winnt:notice] [pid 7888:tid 364] AH00364: Child: All worker threads have exited.
[Mon Nov 12 12:49:37.253636 2018] [mpm_winnt:notice] [pid 9188:tid 368] AH00363: Child: Terminating 243 threads that failed to exit.
[Mon Nov 12 12:49:37.253636 2018] [mpm_winnt:notice] [pid 9188:tid 368] AH00364: Child: All worker threads have exited.
After that we are using the below configuration
<IfModule mpm_worker_module>
ServerLimit 125
StartServers 20
MinSpareThreads 512
MaxSpareThreads 1024
ThreadsPerChild 64
MaxRequestWorkers 8000
MaxConnectionsPerChild 10000
</IfModule>
Now we are getting below log
[Mon Nov 12 14:29:08.996704 2018] [core:notice] [pid 7124:tid 476] AH00094: Command line: 'C:\\Apache\\bin\\httpd.exe -d C:/Apache'
[Mon Nov 12 14:29:08.996704 2018] [mpm_winnt:notice] [pid 7124:tid 476] AH00418: Parent: Created child process 8708
[Mon Nov 12 14:29:09.981085 2018] [jk:warn] [pid 8708:tid 372] No JkLogFile defined in httpd.conf. Using default C:/Apache/logs/mod_jk.log
[Mon Nov 12 14:29:10.184213 2018] [jk:warn] [pid 8708:tid 372] No JkLogFile defined in httpd.conf. Using default C:/Apache/logs/mod_jk.log
[Mon Nov 12 14:29:10.199837 2018] [mpm_winnt:notice] [pid 8708:tid 372] AH00354: Child: Starting 250 worker threads.
[Mon Nov 12 14:29:43.361221 2018] [mpm_winnt:notice] [pid 5988:tid 372] AH00362: Child: Waiting 30 more seconds for 11 worker threads to finish.
[Mon Nov 12 14:30:00.549960 2018] [mpm_winnt:notice] [pid 5988:tid 372] AH00364: Child: All worker threads have exited.
[Mon Nov 12 14:31:33.959999 2018] [mpm_winnt:notice] [pid 8708:tid 372] AH00358: Child: Process exiting because it reached MaxConnectionsPerChild. Signaling the parent to restart a new child process.
[Mon Nov 12 14:31:33.959999 2018] [mpm_winnt:notice] [pid 7124:tid 476] AH00424: Parent: Received restart signal -- Restarting the server.
We are frequently getting
Child: Process exiting because it reached MaxConnectionsPerChild. Signaling the parent to restart a new child process.
how to resolve this error any help will be greatly appreciated!!!
You are using a Windows implementation module (mpm_winnt) instead of mpm_worker_module. Try locate the section:
<IfModule mpm_winnt_module>
ThreadsPerChild 1000
MaxConnectionsPerChild 20000
AcceptFilter http None
AcceptFilter https None
</IfModule>
and modify the ThreadsPerChild parameter.
Related
I'm setting up a SSL certificate in WAMP 2.5 and Apache 2.4.9. As I un comment
Include conf/extra/httpd-ssl.conf in http.conf, Wamp not starting. Here is my ssl confg file and httpd.conf. Please have a look and help.
SSL Conf File
Httpd.conf file
Error in Apache error log
[Sun Jan 27 10:04:35.018678 2019] [ssl:warn] [pid 4880:tid 564] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Jan 27 10:04:35.034305 2019] [mpm_winnt:notice] [pid 4880:tid 564] AH00455: Apache/2.4.9 (Win64) OpenSSL/1.0.1g PHP/5.5.12 configured -- resuming normal operations
[Sun Jan 27 10:04:35.034305 2019] [mpm_winnt:notice] [pid 4880:tid 564] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Sun Jan 27 10:04:35.034305 2019] [core:notice] [pid 4880:tid 564] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Sun Jan 27 10:04:35.034305 2019] [mpm_winnt:notice] [pid 4880:tid 564] AH00418: Parent: Created child process 2204
[Sun Jan 27 10:04:35.549913 2019] [ssl:warn] [pid 2204:tid 468] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Jan 27 10:04:35.565540 2019] [mpm_winnt:notice] [pid 2204:tid 468] AH00354: Child: Starting 64 worker threads.
For CA certificates you define Path instead of File
SSLCACertificatePath "c:/wamp/bin/apache/apache2.4.9/conf/key/gd_bundle-g2-g1.crt"
should be
SSLCACertificateFile "c:/wamp/bin/apache/apache2.4.9/conf/key/gd_bundle-g2-g1.crt"
Although apache seems as "working" on xampp control panel,I can't reach the localhost or 127.0.0.1 . I changed 80 port to 81 but not solved.
httpd.cong -> Listen 0.0.0.0:80
My host file in system32/drivers/etc directory is like
127.0.0.1 localhost
Last log in the apache error log is
[Tue Jul 14 22:54:33.141632 2015] [mpm_winnt:notice] [pid 2620:tid 392] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Jul 14 22:54:35.145746 2015] [mpm_winnt:notice] [pid 4708:tid 288] AH00364: Child: All worker threads have exited.
[Tue Jul 14 22:54:35.188749 2015] [mpm_winnt:notice] [pid 2620:tid 392] AH00430: Parent: Child process 4708 exited successfully.
[Tue Jul 14 22:54:36.218808 2015] [mpm_winnt:notice] [pid 1376:tid 392] AH00455: Apache/2.4.7 (Win32) PHP/5.5.9 configured -- resuming normal operations
[Tue Jul 14 22:54:36.218808 2015] [mpm_winnt:notice] [pid 1376:tid 392] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 20:13:01
[Tue Jul 14 22:54:36.218808 2015] [core:notice] [pid 1376:tid 392] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Tue Jul 14 22:54:36.470822 2015] [mpm_winnt:notice] [pid 1376:tid 392] AH00418: Parent: Created child process 1296
[Tue Jul 14 22:54:36.984851 2015] [mpm_winnt:notice] [pid 1296:tid 288] AH00354: Child: Starting 150 worker threads.
Sometimes the port 80 is used by other applications on windows such as skype.
Try changing the ports to 8080 in the apache>config>httpd.conf
and to 4433 in the apache>config>httpd-ssl.conf
Sometimes your network maybe creating an issue. Try disconnecting the network and reloading the localhost. If it works, then its your network restrictions.
I installed AMPPS
I work with some folders without any problem (magento, phpmyadmin, etc).
But with one folder a website downloaded from from the server, I can not access it, also it is not listed in localhost.
When I access the folder which gives me problems, the browser give me this error: 500 Internal Server Error
And from Apache error.log, I receive this:
[Wed Oct 16 22:51:25.062078 2013] [mpm_winnt:notice] [pid 8132:tid 396] AH00455: Apache/2.4.6 (Win32) OpenSSL/1.0.1e PHP/5.3.27 mod_wsgi/3.4 Python/2.7.2 configured -- resuming normal operations
[Wed Oct 16 22:51:25.062078 2013] [mpm_winnt:notice] [pid 8132:tid 396] AH00456: Server built: Jul 24 2013 14:06:52
[Wed Oct 16 22:51:25.062078 2013] [core:notice] [pid 8132:tid 396] AH00094: Command line: 'apache\\bin\\httpd.exe -d C:/Program Files (x86)/Ampps/apache'
[Wed Oct 16 22:51:25.065078 2013] [mpm_winnt:notice] [pid 8132:tid 396] AH00418: Parent: Created child process 7960
[Wed Oct 16 22:51:26.214144 2013] [mpm_winnt:notice] [pid 7960:tid 408] AH00354: Child: Starting 64 worker threads.
I've read many other answers about the subject but couldn't find a solution to mine. Even uninstalled everything and re-installed...
OS Win8-64bit
Wamp 64-bit, Apache : 2.4.4 MySQL : 5.6.12 PHP : 5.4.12 PHPMyAdmin : 4.0.4 SqlBuddy : 1.3.3
XDebug : 2.2.3
I downloaded 64-bit wsgi from here.
Everything I installed is 64 bit.
When I add LoadModule wsgi_module modules/mod_wsgi.so to httpd.conf WAMP failed to start, removing it solves the problem...
Apache log:
[Thu Aug 29 13:50:38.914739 2013]
[mpm_winnt:notice]
[pid 6124:tid 380]
AH00455: Apache/2.4.4 (Win64) configured -- resuming normal operations [Thu Aug 29 13:50:38.914739 2013]
[mpm_winnt:notice]
[pid 6124:tid 380]
AH00456: Server built: Feb 22 2013 22:08:37 [Thu Aug 29 13:50:38.914739 2013]
[core:notice]
[pid 6124:tid 380]
AH00094: Command line: 'c:\wamp\bin\apache\apache2.4.4\bin\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4' [Thu Aug 29 13:50:38.914739 2013]
[mpm_winnt:notice]
[pid 6124:tid 380]
AH00418: Parent: Created child process 3624 [Thu Aug 29 13:50:39.308626 2013]
[mpm_winnt:notice]
[pid 3624:tid 260]
AH00354: Child: Starting 150 worker threads. [Thu Aug 29 13:52:03.007076 2013]
[mpm_winnt:notice]
[pid 6124:tid 380]
AH00422: Parent: Received shutdown signal -- Shutting down the server. [Thu Aug 29 13:52:05.009448 2013]
[mpm_winnt:notice]
[pid 3624:tid 260]
AH00364: Child: All worker threads have exited. [Thu Aug 29 13:52:05.023457 2013]
[mpm_winnt:notice]
[pid 6124:tid 380]
AH00430: Parent: Child process 3624 exited successfully. [Thu Aug 29 13:59:22.716409 2013]
[mpm_winnt:notice]
[pid 5948:tid 376]
AH00455: Apache/2.4.4 (Win64) configured -- resuming normal operations [Thu Aug 29 13:59:22.717411 2013]
[mpm_winnt:notice]
[pid 5948:tid 376]
AH00456: Server built: Feb 22 2013 22:08:37 [Thu Aug 29 13:59:22.717411 2013]
[core:notice]
[pid 5948:tid 376]
AH00094: Command line: 'c:\wamp\bin\apache\apache2.4.4\bin\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4' [Thu Aug 29 13:59:22.717411 2013]
[mpm_winnt:notice]
[pid 5948:tid 376]
AH00418: Parent: Created child process 5956 [Thu Aug 29 13:59:22.963535 2013]
[mpm_winnt:notice]
[pid 5956:tid 252]
AH00354: Child: Starting 150 worker threads.
When I put Router::parseExtensions('rss'); to routes.php, Apache crashes. So i can't make rss feed.
Any ideas ?
here is a screenshot
[Sat Jan 05 13:02:35.131540 2013] [mpm_winnt:notice] [pid 1576:tid 252] AH00428: Parent: child process exited with status 3221225477 -- Restarting.
[Sat Jan 05 13:02:35.686942 2013] [ssl:warn] [pid 1576:tid 252] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Jan 05 13:02:35.733742 2013] [mpm_winnt:notice] [pid 1576:tid 252] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Sat Jan 05 13:02:35.733742 2013] [mpm_winnt:notice] [pid 1576:tid 252] AH00456: Server built: Aug 18 2012 12:41:37
[Sat Jan 05 13:02:35.733742 2013] [core:notice] [pid 1576:tid 252] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Sat Jan 05 13:02:35.733742 2013] [mpm_winnt:notice] [pid 1576:tid 252] AH00418: Parent: Created child process 4156
[Sat Jan 05 13:02:36.794544 2013] [ssl:warn] [pid 4156:tid 264] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Jan 05 13:02:36.856944 2013] [mpm_winnt:notice] [pid 4156:tid 264] AH00354: Child: Starting 150 worker threads.
this is err log
From the error screen, it appears your RSS may have too much data in it and it is exhausting the memory. You should check the data that is being returned and make sure it is limited.