Re: Performance drops after some time, PHP7-FPM + Docker
| From: | Rasmus Lerdorf | Date: | Fri, 14 Oct 2016 19:10:01 +0000 |
| Subject: | Re: Performance drops after some time, PHP7-FPM + Docker | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-96372@lists.php.net to get a copy of this message | ||
On Fri, Oct 14, 2016 at 9:15 PM, Jérémie BORDIER <jeremie.bordier@gmail.com>
wrote:
>
> I don't really know how to investigate further. If you have any
> pointers on how to help figuring out what's wrong, I'd love to try.
>
I would breakout the Linux perf command for something like this.
Run it like this:
perf record -p <pid_of_a_php-fpm_process> -g
Let that run for some arbitrary amount of time. Start with 10 seconds, or
so. Then:
perf report -n
That should give you a nice report of what your php-fpm process did for
those 10 seconds. Now do the same thing when you see the problem and
compare the reports.
-Rasmus