Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Apr 2015 08:56:53 +0400
From:      Dimitri Minaev <minaev@gmail.com>
To:        Matt Smith <fbsd@xtaz.co.uk>, Dimitri Minaev <minaev@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: High LA caused by php-fpm
Message-ID:  <CANTUpDD-k1m_wGmpOTovwXwdmbZb5RBU-ZK_nDJB-Cr761FK5w@mail.gmail.com>
In-Reply-To: <20150415085039.GF1280@xtaz.uk>
References:  <CANTUpDDwYoF4q3Tn%2BU4F132A83cO1gKUuGqoc8kD%2BAoQRdG4CA@mail.gmail.com> <20150415085039.GF1280@xtaz.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANTUpDD-k1m_wGmpOTovwXwdmbZb5RBU-ZK_nDJB-Cr761FK5w>