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?
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?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.