14 Apr 2023 07:01 AM - last edited on 17 Apr 2023 12:59 AM by MaciejNeumann
I'm trying to analyze method hotspots on a PHP application using Symfony.
Most of the time, session management seems to be bottleneck, but I can't drill down to be sure of the root cause.
Somebody already has the use case ?
Yes, check the Session Management code. It's showing as code, so verify how they are being managed.
Also, take a look at compilations. There are metrics for that, but you can also check "Code level" in the distributed traces and see them at the beginning of the requests. Had several problems with PHP/Symfony compilations in the past.
I already try Code Level on some traces, but only Other time is shown.
How to deep dive ?
We tried changing disk where sessions are stored (network disk before, local disk now), but nothing change in response times.
First of all, it doesn't seem to be Compilations, as the following would have to be appearing:
It seems it might be interesting to see the full Code tab, if you can filter your data. Could you share it?
Given how late the __construct starts, I would check several PHP metrics in Data Explorer, including the ones related to thread and processes. Also check if you are using OPCache?