High LA caused by php-fpm

Dimitri Minaev minaev at gmail.com
Tue Apr 21 04:56:54 UTC 2015


Thanks, Matt. I'm not sure whether the problem was in OpenSSL, but it was
definitely in PHP. I installed 5.4 and the LA immediately dropped to
reasonable figures. PHP packaged in php5 even includes php-fpm and I didn't
have to compile it myself. So, I think I must have done something wrong
when compiling it.
Still trying to pinpoint the real problem...

On 15 April 2015 at 12:50, Matt Smith <fbsd at xtaz.co.uk> wrote:

> On Apr 15 12:02, Dimitri Minaev wrote:
>
>> Today, I tried to move our bunch of Drupal-powered web sites to a new
>> server.  The old server was running FreeBSD 7.2 and I wanted to install a
>> newer version. In the meanwhile, I transferred the sites to the new server
>> (FreeBSD 10.1 on ZFS mirror,  1CPU with 6 cores and hyperthreading).
>> Everything looked fine, but as soon as the requests rate reached the usual
>> 50-150 req/sec, the server shut up. Load average went up to 60, all
>> requests timed out and the backlog on php-fpm socket was full (2048). All
>> diagnostic tools showed that I/O was negligible, there was no swapping and
>> the only problem was high CPU usage caused by php-fpm.
>>
>
> Hi, I had exactly this problem myself along with several other things
> behaving strangely because of the OpenSSL 1.0.2 update. For me, recompiling
> openssl with the ASM optimisation option switched off worked around the
> problem. With ASM on php-fpm used up huge amounts of load average, with ASM
> off the behavior is back to normal. Of course your issue may not be related
> to this, but it could be something to investigate. I discussed my issues in
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198788 , search for
> php-fpm on that page.
>
> --
> Matt
>



-- 
With best regards,
Dimitri Minaev


More information about the freebsd-questions mailing list