httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tadeu Alves <tadeu...@gmail.com>
Subject Re: [users@httpd] Apache Tunning
Date Fri, 13 Mar 2009 22:38:28 GMT
i forget the other stuff i'm using moodle with some images werving with
eaccelerator running with php and i you want i can send a conf file about
mysql, php and apache if you would like to.

On Fri, Mar 13, 2009 at 2:45 PM, Anthony J. Biacco <
abiacco@formatdynamics.com> wrote:

>  1. I have to rail totally against this. The more you lower
> MaxRequestsPerChild, the more often apache is killing and recreating a child
> process. At numbers as low as 2000 or lower, you’re starting to defeat the
> whole purpose of using the worker mpm.
>
> >=50% of apache’s time is going to be spent managing child processes on a
> high traffic site. MaxRequestsPerChild should either be 0 or something very
> high. IF your process memory usage gets higher and higher, then you have a
> memory leak somewhere.
>
> 2. Don’t use ThreadLimit, stick with ThreadsPerChild
>
> 3. You MaxClients doesn’t sync up to your other numbers. MaxClients is
> going to be ServerLimit x ThreadsPerChild. So for you, 1500. If you want to
> serve 1500 concurrent reqs, then set MaxClients to match this at 1500. If
> you want 500, then change ServerLimit,StartServers and ThreadsPerChild so
> the math is right. For instance, ServerLimit 10, StartServers 5,
> ThreadsPerChild 50 will be you a MaxClients of 500.
>
> If you give us your server parameters (cpu, memory, modules loaded, apache
> rss usage, types of files served), we’d be able to better recommend numbers
> for what your server can support.
>
>
>
> -Tony
>
> ---------------------------
>
> Manager, IT Operations
>
> Format Dynamics, Inc.
>
> 303-573-1800x27
>
> abiacco@formatdynamics.com
>
> http://www.formatdynamics.com
>
>
>
> *From:* Tadeu Alves [mailto:tadeudca@gmail.com]
> *Sent:* Friday, March 13, 2009 8:45 AM
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] Apache Tunning
>
>
>
> nice one. Getting on this hook, in my server we run moodle i dunno if you
> guys know about it and a very high hits/second i wan't to know if going down
> about MaxRequestsPerChild 500 will be good to performance and any idea about
> changing my server variables to make it support more concurrent connections
>
>
>
> ########################################
>
> <IfModule worker.c>
> ServerLimit          30
> ThreadLimit          70
> StartServers           20
> MaxClients            500
> MinSpareThreads        10
> MaxSpareThreads        15
> ThreadsPerChild        50
> MaxRequestsPerChild  2000
> MaxMemFree          5000
> #ReceiveBufferSize  714400 (not using anymore)
>
>
>
> #################################
>
>
>
>
>
> On Fri, Mar 13, 2009 at 5:41 AM, Gaurav Khambhala <gaurav@deeproot.co.in>
> wrote:
>
> Hi Kulbir,
>
>
>
> Gaurav wrote:
>
> Tadeu Alves wrote:
>
> i thibk that you can down the variable
>  MaxRequestsPerChild  20000 to 2000 it's too much and if the child process
> keeps the request well i't grows bigger and bigger in memory
>
>
> Even 2000 is too much. Various high load,high traffic servers also don't
> have this much high value.
>
>
>
> Found this: http://rimuhosting.com/howto/memory.jsp may be useful to you.
>
>
>
>
> --
> Cheers,
>
>
> Gaurav Khambhala
> i-hack-at-DeepRoot Linux
> Getting GNU/Linux to work for you. Faster. Better. Today. Every way.
> http://www.deeproot.in, +91 80 4089 0000
>
>
> ---------------------------------------------------------------------
> 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