Php-Fpm Question

Post Reply
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Php-Fpm Question

Post 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,
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Php-Fpm Question

Post by admin »

Hi!

check your templates for php code

how much traffic is "high traffic" here?
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Php-Fpm Question

Post by tubeman »

About 2 Million a day, images served from external CDN, so its mostly php activity on server.
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Php-Fpm Question

Post by tubeman »

Also mysql and redis is on a separate dedicated server
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Php-Fpm Question

Post by admin »

not too much ..

do you have a lot of php code in templates?
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Php-Fpm Question

Post 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.
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Php-Fpm Question

Post by admin »

ok, send me ssh plz and time when high load occurs
Don't forget to run script update
Post Reply