You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tseveendorj Ochirlantuu <ts...@gmail.com> on 2009/12/14 11:00:31 UTC

[users@httpd] about ServerLimit and ThreadLimit

Hello,

On the documentation of Apache2.2

ServerLimit  <../mod/mpm_common.html#serverlimit>is a hard limit on the
number of active child processes, and must be greater than or equal to the
MaxClients <../mod/mpm_common.html#maxclients> directive divided by the
ThreadsPerChild <../mod/mpm_common.html# threadsperchild> directive.
ThreadLimit <../mod/mpm_common.html#threadlimit> is a hard limit of the
number of server threads, and must be greater than or equal to the
ThreadsPerChild <../mod/mpm_common.html#threadsperchild> directive.

I did like above on worker MPM but server reached Max connection when 256th
connection come.

<IfModule mpm_worker_module>
    StartServers               5
    MaxClients              350
    MinSpareThreads       25
    MaxSpareThreads      75
    ThreadsPerChild         25
    MaxRequestsPerChild   0
    ServerLimit               40
    ThreadLimit              40
</IfModule>

Is there something wrong in my configuration ?

Regards,
Tseveen.

Re: [users@httpd] about ServerLimit and ThreadLimit

Posted by Tseveendorj Ochirlantuu <ts...@gmail.com>.
Philip Wigg,

Sorry that was mistake. I didn't clear it :D
problem already solved. Have a nice day dude.

Best regards,
Tseveen.

On Mon, Dec 14, 2009 at 7:51 PM, Philip Wigg <ph...@philipwigg.co.uk> wrote:

> > I got prefork.c. Can you drive me
>
> I'm afraid I can't drive you, you'll have to read the documentation
> about the process models. Here's a good start:-
>
> http://httpd.apache.org/docs/2.2/mpm.html
> http://httpd.apache.org/docs/2.2/mod/prefork.html
>
> It might be that switching to the worker MPM is what you want, or you
> might want to stay with prefork and just increase MaxClients but
> you'll have to read about the MPMs and decide.
>
> After reading the docs, if you have a specific issue you need help
> with then feel free to come back with a suitably constructed smart
> question and we'll be happy to help.
>
> http://catb.org/~esr/faqs/smart-questions.html
>
> Cheers,
> Phil.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] about ServerLimit and ThreadLimit

Posted by Philip Wigg <ph...@philipwigg.co.uk>.
> I got prefork.c. Can you drive me

I'm afraid I can't drive you, you'll have to read the documentation
about the process models. Here's a good start:-

http://httpd.apache.org/docs/2.2/mpm.html
http://httpd.apache.org/docs/2.2/mod/prefork.html

It might be that switching to the worker MPM is what you want, or you
might want to stay with prefork and just increase MaxClients but
you'll have to read about the MPMs and decide.

After reading the docs, if you have a specific issue you need help
with then feel free to come back with a suitably constructed smart
question and we'll be happy to help.

http://catb.org/~esr/faqs/smart-questions.html

Cheers,
Phil.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] about ServerLimit and ThreadLimit

Posted by Tseveendorj Ochirlantuu <ts...@gmail.com>.
Philip Wigg,

You're right. Thank you very much. Solved

Regards,
Tseveen.

I got prefork.c. Can you drive me

On Mon, Dec 14, 2009 at 6:23 PM, Philip Wigg <ph...@philipwigg.co.uk> wrote:

> > On the documentation of Apache2.2
> > ServerLimit is a hard limit on the number of active child processes, and
> > must be greater than or equal to the MaxClients directive divided by
> > the ThreadsPerChild directive. ThreadLimit is a hard limit of the number
> of
> > server threads, and must be greater than or equal to
> > the ThreadsPerChild directive.
> > I did like above on worker MPM but server reached Max connection when
> 256th
> > connection come.
> > <IfModule mpm_worker_module>
> >     StartServers               5
> >     MaxClients              350
> >     MinSpareThreads       25
> >     MaxSpareThreads      75
> >     ThreadsPerChild         25
> >     MaxRequestsPerChild   0
> >     ServerLimit               40
> >     ThreadLimit              40
> > </IfModule>
> > Is there something wrong in my configuration ?
>
> My guess is that you're not using the worker MPM, and that you're
> actually using the prefork MPM which is the default. Run a 'apachectl
> -l' and see the modules you've got compiled-in. If you see 'prefork.c'
> then that's why. See the docs for changing to worker if that's what
> you want.
>
> Cheers,
> Phil.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] about ServerLimit and ThreadLimit

Posted by Philip Wigg <ph...@philipwigg.co.uk>.
> On the documentation of Apache2.2
> ServerLimit is a hard limit on the number of active child processes, and
> must be greater than or equal to the MaxClients directive divided by
> the ThreadsPerChild directive. ThreadLimit is a hard limit of the number of
> server threads, and must be greater than or equal to
> the ThreadsPerChild directive.
> I did like above on worker MPM but server reached Max connection when 256th
> connection come.
> <IfModule mpm_worker_module>
>     StartServers               5
>     MaxClients              350
>     MinSpareThreads       25
>     MaxSpareThreads      75
>     ThreadsPerChild         25
>     MaxRequestsPerChild   0
>     ServerLimit               40
>     ThreadLimit              40
> </IfModule>
> Is there something wrong in my configuration ?

My guess is that you're not using the worker MPM, and that you're
actually using the prefork MPM which is the default. Run a 'apachectl
-l' and see the modules you've got compiled-in. If you see 'prefork.c'
then that's why. See the docs for changing to worker if that's what
you want.

Cheers,
Phil.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org