Page 1 of 1
Php-Fpm Question
Posted: Wed Mar 06, 2019 9:19 am
by tubeman
Hi,
During high traffic hours php-fpm using 100% cpu on all 24 cores and causes high server load, also uses alot of RAM.Any idea how to tweak to reduce server load. Please Advice. Thanks.
Regards,
Re: Php-Fpm Question
Posted: Wed Mar 06, 2019 3:15 pm
by admin
Hi!
check your templates for php code
how much traffic is "high traffic" here?
Re: Php-Fpm Question
Posted: Wed Mar 06, 2019 4:25 pm
by tubeman
About 2 Million a day, images served from external CDN, so its mostly php activity on server.
Re: Php-Fpm Question
Posted: Wed Mar 06, 2019 4:26 pm
by tubeman
Also mysql and redis is on a separate dedicated server
Re: Php-Fpm Question
Posted: Wed Mar 06, 2019 6:02 pm
by admin
not too much ..
do you have a lot of php code in templates?
Re: Php-Fpm Question
Posted: Sun Mar 10, 2019 6:58 pm
by tubeman
Hi,
Php code is the general If statements for meta titles, showing banners if else mobile statement. Using player to show embeds but I tried removing it but it still didn't help. Host tried everything by increasing php-fpm settings also but still the load is very high during traffic peak hours. Any way to find out why php-fpm is using so much CPU or how to find in logs which exact processes causing so much CPU to be consumed? Its only happening during traffic peak hours.
Re: Php-Fpm Question
Posted: Mon Mar 11, 2019 7:29 am
by admin
ok, send me ssh plz and time when high load occurs