PHP APM Agent Blocking

I have the PHP APM agent running on PHP 7.4 FPM (thanks, Sergey!) and all is well until the APM server goes down. It seems like PHP agent blocks calls, thus impacting the end users. I read this thread with interest, but it's unclear how to implement asynchronous APM calls on the PHP agent. Any ideas?

Thanks!

Hi @rgb3,

I would recommend to try setting server_timeout to a lower value. The default is 30s which is 30 seconds. You can try setting ti to 1s.

It seems like PHP agent blocks calls, thus impacting the end users.

This should not happen - the agent sends the events to APM server after the response has been already sent to the HTTP client. A possible situation when APM server timeout can affect the clients is when the web server is single-process/thread (for example built-in PHP web server) because the next request cannot start until the agent finished sending the events (or aborted the sent because of the timeout). Is your web server single-process/thread?

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.