httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o haya <>
Subject Re: [users@httpd] Getting "connection refused" Apache 2.4
Date Tue, 17 Nov 2015 17:27:45 GMT

To be clear, the config snippet I posted below was from the "vanilla" Apache I built from

When I encounter the errors, I am seeing the "connection refused" errors from Jmeter (the
client/load tester).  I don't seem to see errors per se, in the Apache logs, but, puzzlingly,
I do see messages AH00162 messages in the error log, saying that that the server "dseems busy"
and indicating that more children are being spawned.  

What I mean by "puzzlingly" is that I now have the Apache configured to start 600+ processes,
so in those AH00162 it is showing 600+ total children, but my Jmeter is configured to only
run 500 threads.  In other words, it seems like there should only be like 500 active requests
at any given time, and there seem to already be > 500 children (even if I subtract idle
from total children) so why is Apache spawning even more children?


On Tue, 11/17/15, Daniel <> wrote:

 Subject: Re: [users@httpd] Getting "connection refused" Apache 2.4
 To: "o haya" <>, "Yann Ylavic" <>, ""
 Date: Tuesday, November 17, 2015, 11:59 AM
 always recommend to specify a fixed ServerLimit Value, if
 you have 500 processes but you allow 150 clients, I think
 you are just filling a backlog of connections which are not
 attended until you get to a limit of backlogged
 Do you
 have specific errors in apache? Check the server config
 context error log first.
 Also later if you have correctly
 configured your mpm for the amount of real clients you will
 have,  it is worth a try to check ulimit values
 "ulimit -a" for root. Also consider if you start apache
 using "sudo", your ulimit values will be used
 instead of root's.
 El mar., 17
 nov. 2015 a las 2:10, o haya
 (<>) escribió:
 is what is in the
 # prefork MPM#
 StartServers: number of server processes to
 start# MinSpareServers: minimum number of server
 processes which are kept spare# MaxSpareServers:
 maximum number of server processes which are kept
 spare# MaxClients: maximum number of server
 processes allowed to start# MaxRequestsPerChild:
 maximum number of requests a server process
 mpm_prefork_module>    StartServers      
    5    MinSpareServers      
 5    MaxSpareServers      10   
 MaxClients          150   
 From: Yann
 Ylavic <>
 o haya <>
 Sent: Monday, November
 16, 2015 7:57
 Subject: Re:
 [users@httpd] Getting "connection refused" Apache
 On Tue, Nov 17, 2015 at 1:11 AM, Yann Ylavic
 > On Tue, Nov 17, 2015 at 12:23 AM, o haya
 This is with the as-built Apache configuration settings
 (i.e., I haven't
 >> tried tweaking
 > Please
 share your settings for [...]
 MaxSpareThreads, MinSpareThreads [...]
 I meant MaxSpareServers and
 MinSpareServers here, *Threads are not
 relevant for prefork.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message