httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel <dferra...@gmail.com>
Subject Re: [users@httpd] Getting "connection refused" Apache 2.4
Date Tue, 17 Nov 2015 16:59:41 GMT
I 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 connections.

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 (<ohaya@yahoo.com.invalid>)
escribió:

> This is what is in the extra/httpd-mpm.conf:
>
> # 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 serves
> <IfModule mpm_prefork_module>
>     StartServers          5
>     MinSpareServers       5
>     MaxSpareServers      10
>     MaxClients          150
>     MaxRequestsPerChild   0
> </IfModule>
>
>
>
>
> ------------------------------
> *From:* Yann Ylavic <ylavic.dev@gmail.com>
>
> *To:* users@httpd.apache.org; o haya <ohaya@yahoo.com>
> *Sent:* Monday, November 16, 2015 7:57 PM
>
> *Subject:* Re: [users@httpd] Getting "connection refused" Apache 2.4
>
> On Tue, Nov 17, 2015 at 1:11 AM, Yann Ylavic <ylavic.dev@gmail.com> wrote:
>
>
>
> > On Tue, Nov 17, 2015 at 12:23 AM, o haya <ohaya@yahoo.com.invalid>
> wrote:
> >>
> >> This is with the as-built Apache configuration settings (i.e., I haven't
> >> tried tweaking them).
> >
> > Please share your settings for [...]
> > MaxSpareThreads, MinSpareThreads [...]
>
>
> I meant MaxSpareServers and MinSpareServers here, *Threads are not
> relevant for prefork.
>
>
>
>

Mime
View raw message