Ever since we upgrade our production server to PHP8.3 we have being experienced a high cpu usage with minimal traffic. We have tried a lot of things to pinpoint the source of this problem but unable to find out where. I have see some other posts about the same problem, and try out the solutions, but it is still happening. Here are the server specs:
OS: 22.04.4
kernel: 5.15.0-112
nginx: 1.18
php: 8.3.8
This is my nginx.conf file:
https://pastebin.com/2ZaZafY5
And this is my www.conf:
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
The hardware config is 4 cpus and 8gb of ram, same as the user of this post (I have tried his config in the www.pool, but it always lead me to a permanent 100% cpu usage). Frankly, dunno where else to look, I would appreciate some insights on where the problem might be or how can I pinpoint the problem. We definitly dont have enought traffic to justify this usage of the cpu, and everthing started since we upgraded to PHP8.3
Regards and thanks in advanced!!
What did you try : Looking and tweaking all nginx anf PHP config files.
what were you expecting: Not so high cpu usage per user visit