httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <johan.b...@latecoere.fr>
Subject RE: [users@httpd] Apache2 performance tunning : MaxClients problem
Date Thu, 20 Sep 2007 13:19:16 GMT
> -----Message d'origine-----
> De : Gerhardus.Geldenhuis@gta-travel.com 
> [mailto:Gerhardus.Geldenhuis@gta-travel.com] 
> Envoyé : jeudi 20 septembre 2007 14:39
> À : users@httpd.apache.org
> Objet : RE: [users@httpd] Apache2 performance tunning : 
> MaxClients problem
> 
> Hi Johan,
> 
> > 
> > You can check out my whole conf here : 
> > http://www.pastebin.ca/704464 I'm still wondering how to 
> > setup  ServerLimit / MaxClients bigger then 256 *IF* this 
> > option are the best ones to increase the typical answer time 
> > of my server ?
> 
> You need to set serverlimit in you config file which was not 
> set. I have
> changed it on the website but copy it hear too.
> 
> <IfModule prefork.c>
>   StartServers         15
>   MinSpareServers      10
>   MaxSpareServers      20
>   MaxClients           512
>   ServerLimit          512
>   MaxRequestsPerChild  4000
> </IfModule>

I tried already and here is the error message : 
    WARNING: MaxClients of 512 exceeds ServerLimit value of 256 servers,
    lowering MaxClients to 256.  To increase, please see the ServerLimit
    directive.

Any ideas why ?

I was wondering if I put it at the right place but I did like you, so there is no reason.
I heard it was hardcoded during the compilation
I also did some test with 512, it *seems* to be slower :-/
Perhaps i'm not tunning the best parameter for my needs ?


> 
> > > Also make sure you are using prefork and not mpm otherwise 
> > different 
> > > rules will apply in configuring MaxClients and ServerLimit.
> > > 
> > > On a redhat system you can check here: 
> /etc/sysconfig/httpd whether 
> > > you are using prefork or mpm.
> > 
> > I found it in /server-info/
> > 
> >     Server Built: Aug 16 2007 22:41:15
> >     API Version: 20020903:11
> >     Hostname/port: intranet.xxxxxxxxx.local:80
> >     Timeouts: connection: 45    keep-alive: 45
> >     MPM Name: Prefork
> >     MPM Information: Max Daemons: 256 Threaded: no Forked: yes
> >     Server Root: /etc/apache2
> >     Config File: /etc/apache2/apache2.conf
> > 
> > I think I'm using Prefork, right ?
> 
> It looks like it. ;-)
> 
> > I've setup 4000 to have a try. Gonna test with ab.
> 
> What was your original motivation in setting MaxRequestsPerChild=0?

 I had any, I guess I pasted that from the previous server during the migration....

"Les informations contenues dans ce message électronique peuvent être de nature confidentielles
et soumises à une obligation de secret. Elles sont destinées à l'usage exclusif du réel
destinataire. Si vous n'êtes pas le réel destinataire, ou si vous recevez ce message par
erreur, merci de le détruire immédiatement et de le notifier à son émetteur."

 "The information contained in this e-mail may be privileged and confidential. It is intended
for the exclusive use of the designated recipients named above. If you are not the intended
recipient or if you receive this e-mail in error, please delete it and immediately notify
the sender."


---------------------------------------------------------------------
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


Mime
View raw message