Hi everyone,
currently, I’m trying to improve the app “Duplicate Finder”. It looks like my code works well, but the maintainer reported some issues on the CPU usage - it increases to 100% and spawns a new fpm child. I was able to observe this as well.
I’ve tried to find a solution for that by increasing the log level for php-fpm. The increased log level showed that the number of active children increased which makes the spawn quite reasonable. But I wasn’t able to find the reason why so many children are active.
By using xdebug profiling and strace I saw that a lot of work was done on the core. But not that a loop in my app exists or so.
As I’m quite new to debugging php in such depth, can anybody give me an advice how to start/continue debugging?
Thanks in advance
Christian