Hey Guys,
I managin all my VPS on a regular action daily basis. Recently one of my VPS is facing PHP FPM CPU Issues. 1 Website 1 VPS placed. Website is Woocommerce.
My server application stack is :
I'm a small business owner making online sales ( Dropshipping ), And I create one product, one store ( One Product Store ), and those stores. WOO only placed 1 VPS on AWS service t3. Small 2vCPU 2Gram1 website. So my stack and server setting tweak was working smoothly, but one of the new VPS ( Store ) because of the FastCGI checkout page caching excluding, now all the Request hitting to PHP FPM.
I Have enabled object cache Redis and also OPcache, but it is not helping so much. Every other request to the checkout page from landing page responding 7 seconds average and PHP FPM sucking all the server CPU.
I have checked PHP FPM logs and found out PHP FPM Workers not enough, and after that, I have tuned PHP FPM but still the same issues.
There are 2 options.
1. Nulled plugins making dynamic pages slowing down.
2.PHP FPM settings not configured correctly.
3.Server resource, not enough ( I have split tested with 8vcpu 16g ram still same issues )
[19-Feb-2021 14:41:22] NOTICE: ready to handle connections
[19-Feb-2021 14:41:22] NOTICE: systemd monitor interval set to 10000ms
[19-Feb-2021 14:42:06] WARNING: [pool domainname] server reached pm.max_children setting (6), consider raising it
[19-Feb-2021 14:43:16] WARNING: [pool domainname] server reached pm.max_children setting (6), consider raising it
[19-Feb-2021 14:44:28] WARNING: [pool domainname] server reached pm.max_children setting (6), consider raising it
[19-Feb-2021 14:44:45] WARNING: [pool domainname] server reached pm.max_children setting (6), consider raising it
[19-Feb-2021 14:48:32] NOTICE: Terminating ...
[19-Feb-2021 14:48:32] NOTICE: exiting, bye-bye!
[19-Feb-2021 14:49:03] NOTICE: fpm is running, pid 562
[19-Feb-2021 14:49:03] NOTICE: ready to handle connections
[19-Feb-2021 14:49:03] NOTICE: systemd monitor interval set to 10000ms
[19-Feb-2021 14:49:30] WARNING: [pool domainname] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 0 idle, and 5 total children
[19-Feb-2021 14:49:31] WARNING: [pool domainname] server reached pm.max_children setting (6), consider raising it
Is there anyone who is PHP FPM experts?
I managin all my VPS on a regular action daily basis. Recently one of my VPS is facing PHP FPM CPU Issues. 1 Website 1 VPS placed. Website is Woocommerce.
My server application stack is :
- Nginx (with HTTP/2 enabled) 1.18
- PHP-FPM7.4
- MariaDB 10.4
- Redis 5.0
- Git
- Composer
- WP-CLI
- Certbot
- UFW (firewall)
- Fail2ban
I'm a small business owner making online sales ( Dropshipping ), And I create one product, one store ( One Product Store ), and those stores. WOO only placed 1 VPS on AWS service t3. Small 2vCPU 2Gram1 website. So my stack and server setting tweak was working smoothly, but one of the new VPS ( Store ) because of the FastCGI checkout page caching excluding, now all the Request hitting to PHP FPM.
I Have enabled object cache Redis and also OPcache, but it is not helping so much. Every other request to the checkout page from landing page responding 7 seconds average and PHP FPM sucking all the server CPU.
I have checked PHP FPM logs and found out PHP FPM Workers not enough, and after that, I have tuned PHP FPM but still the same issues.
There are 2 options.
1. Nulled plugins making dynamic pages slowing down.
2.PHP FPM settings not configured correctly.
3.Server resource, not enough ( I have split tested with 8vcpu 16g ram still same issues )
[19-Feb-2021 14:41:22] NOTICE: ready to handle connections
[19-Feb-2021 14:41:22] NOTICE: systemd monitor interval set to 10000ms
[19-Feb-2021 14:42:06] WARNING: [pool domainname] server reached pm.max_children setting (6), consider raising it
[19-Feb-2021 14:43:16] WARNING: [pool domainname] server reached pm.max_children setting (6), consider raising it
[19-Feb-2021 14:44:28] WARNING: [pool domainname] server reached pm.max_children setting (6), consider raising it
[19-Feb-2021 14:44:45] WARNING: [pool domainname] server reached pm.max_children setting (6), consider raising it
[19-Feb-2021 14:48:32] NOTICE: Terminating ...
[19-Feb-2021 14:48:32] NOTICE: exiting, bye-bye!
[19-Feb-2021 14:49:03] NOTICE: fpm is running, pid 562
[19-Feb-2021 14:49:03] NOTICE: ready to handle connections
[19-Feb-2021 14:49:03] NOTICE: systemd monitor interval set to 10000ms
[19-Feb-2021 14:49:30] WARNING: [pool domainname] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 0 idle, and 5 total children
[19-Feb-2021 14:49:31] WARNING: [pool domainname] server reached pm.max_children setting (6), consider raising it
Is there anyone who is PHP FPM experts?