Re: High load apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I guess you can, beside from all the apache tuning, speed up your
setup with two components.
1. Use a php accelerators
2. Run a http accelerator like varnish in front of the apache for all
the static files

2010/9/8 luis medrano <lmzaldivar@xxxxxxxxx>:
> what this modules do?
>
> On Wed, Sep 8, 2010 at 1:30 PM, Paras pradhan <pradhanparas@xxxxxxxxx> wrote:
>> They are loaded:
>> LoadModule expires_module modules/mod_expires.so
>> LoadModule deflate_module modules/mod_deflate.so
>>
>> Thanks
>> Paras.
>> On Wed, Sep 8, 2010 at 3:05 PM, "Fábio Jr." <fjuniorlista@xxxxxxxxx> wrote:
>>>
>>> Hi,
>>>
>>> Try to enable mod_expires and mod_deflate to see if there is some
>>> significant boost in the performance.
>>>
>>> []s.
>>>
>>> Fábio jr.
>>>
>>> Em 08-09-2010 16:42, Paras pradhan escreveu:
>>>>
>>>> Hi,
>>>>
>>>> Looking for recommendations.
>>>>
>>>> I need to serve 100-200+ concurrent users to provide php based webmail
>>>> client (horde). I have setup memcached and php-fastcgid for this purpose.
>>>> The server has four 2.2G AMD optereon cores with 8GB of memory. I am doing
>>>> stress test using ab as: ab -t 36000 -c 100 https://url/h/imp/login.php.
>>>> What I have noticed if the number of concurrent users are more than around
>>>> 25, I get the sluggish performance and I can see linux load rising high to
>>>> 25 to 30 and all the cpu cores are approximately 75% used.
>>>>
>>>> This is what I have in config files:
>>>>
>>>> mpm worker:
>>>> --
>>>> <IfModule worker.c>
>>>> StartServers         15
>>>> MaxClients         960
>>>> MinSpareThreads     75
>>>> MaxSpareThreads     150
>>>> ThreadsPerChild     64
>>>> MaxRequestsPerChild  5000
>>>> --
>>>>
>>>> memcached: 4GB
>>>>
>>>> ---
>>>>
>>>> fcgid:
>>>>
>>>> <IfModule !mod_fastcgi.c>
>>>>  AddHandler fcgid-script .fcgi
>>>>  MaxRequestsPerProcess 10000
>>>>  MaxProcessCount       100
>>>>  IPCCommTimeout        240
>>>>  IdleTimeout           240
>>>>  ProcessLifeTime 300
>>>>  BusyTimeout 300
>>>>  DefaultMaxClassProcessCount 100
>>>>  DefaultMinClassProcessCount 50
>>>>
>>>> </IfModule>
>>>> ---
>>>>
>>>> php-fcgid:
>>>>
>>>> # Number of PHP childs that will be launched. Leave undefined to let PHP
>>>> decide.
>>>> #    DefaultInitEnv PHP_FCGI_CHILDREN 4
>>>> # Maximum requests before a process is stopped and a new one is launched
>>>>    DefaultInitEnv PHP_FCGI_MAX_REQUESTS 10000
>>>> ----
>>>> OS: RHEL 5.5
>>>> Apache: 2.2.3
>>>> PHP: 5.1
>>>> Mysql: 5.0
>>>>
>>>>
>>>> Will appreciate for any inputs.
>>>>
>>>> Thanks!
>>>> Paras.
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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@xxxxxxxxxxxxxxxx
>>>  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>>>
>>
>>
>
> ---------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux