Re: prefork vs worker mpm in apache

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

 



On 11/3/15 2:21 PM, "Jim Jagielski" <jim@xxxxxxxxxxx> wrote:

>
>> On Nov 3, 2015, at 10:43 AM, Tim Dunphy <bluethundr@xxxxxxxxx> wrote:
>> 
>> 
>> Hey guys,
>> 
>> We had to recompile apache 2.4.12 because we needed to disable thread
>>safety in php (ZTS).  Because for some reason when compiling php with
>>the --disable-maintainer-zts with the worker mpm model and checking the
>>php info page, it was saying that thread safety was still enabled.
>> 
>> So when we recompiled apache to use the prefetch worker model instead
>>of worker, the php info page was showing that  thread safety was
>>disabled.
>> 
>> But after that change apache processes spiked from around 11 processes
>>per machine to well over 250 processes at any given time.
>> 

Does "Prefetch worker" = Event MPM? I thought "Event" with PHP-FPM was the
suggested config.

>> These are the tuning settings we have in apache:
>> 
>> StartServers 10
>> 
>> #MinSpareServers 10
>> 
>> #MaxSpareServers 25
>> 
>> ServerLimit 250
>> 
>> MaxRequestWorkers 250
>> 
>> MaxConnectionsPerChild 1000
>
>Should be 0.

What "Should be 0"?


>
>> 
>> KeepAlive On
>> 
>> KeepAliveTimeout 30

Seems like I have read in somewhat recent exchanges that "KeepAlive Off"
is the recognized preference?

>
>Should be 3 or so
>
>> 
>> EnableSendfile Off
>
>Should be On
>
>
>Cheers!
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


Thanks


>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-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