Answer the question
In order to leave comments, you need to log in
How to profile PHP 7.1 in production?
Good afternoon, at loads more than 150 RPS, some "unrest" begins from the backend. And not the generation time does not always depend on the RPS. For example, at the peak of RPS (~260), responses came 2 times faster than at ~200.
It's an API (JSON only). Under the hood php 7.1 and redis. You need to understand what exactly slows down the system, I think it's redis. it is single-threaded, and the script creates pconnect every time i.e. possibly wasting time waiting.
I wanted to install XHprof, but it hasn't been supported for a long time and there's nothing there for PHP 7.*. What do you profile in production?
Thank you!
Answer the question
In order to leave comments, you need to log in
I recommend watching and listening to the report of the VP developer . Although it seems to be about VP, but in this case it is a particularity. In general, it is useful for any developer to know. It covers both methods and tools for profiling.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question