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:30:09 GMT
Man i was looking for the right calculation about this question will help me
very much because we're have this problem an is a pain in the *** well ill
post below our server configuration, for now is very stable but consumes too
much memory (mysql=php+apache) for moodle so here it i want about 800
simultaneous users connected if i'm right will be serverlimit 20 startserver
10 threadsperchild 40

i'll put it to test

the server configuration is a dell poweredge 1950 with raid 1 sas 73gb 8gb
memory dual xeon 5430 on a Red Hat Enterprise Linux x64 Mysql 5.0.45, php
5.1.6 and Apache 2.2.3
thanks for the heads up and i'll put about MaxRequestPerChild 10000 and see
the server working this weekend if it doesn't make any crashes then i'll
stay with this variable then i'll change the other variables and see it too.



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