Just a quick question.
I am running into problem where php-fpm: pool processes for one of my magento sites are running/not completing. They stay there and just bog down the server until the entire server (all users/domains) are slow and unusable.
When i did deleted all static content and redeployed it ran good for about 30 minutes. I could see the processed start and complete. but eventually php-fpm 7.4 bogs down and i have to restart the service again.
I am hoping that enabling FastCGI might help with this.
MY QUESTION: I see where i enable FastCGI in admin settings for specific user. But am unsure if i need to edit a file somehwere? which file? I read this tutorial and it speaks about custom templates and i’m not sure what file I need to edit and add that snippet of code to?
Thanks for any input.
Here is a screen shot the stuck processes. is there a way to force terminate these after lets say 1 minute. I have tried editing the pool.d file for my domain by adding something like this. But that didn’t really seem to do anything. I’m not even quite sure what these processes are doing. As soon as i restart php 7.4 service, all the domains are super fast.
; The timeout for serving a single request after which the worker process will
; be killed. This option should be used when the 'max_execution_time' ini option
; does not stop script execution for some reason. A value of '0' means 'off'.
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
; Default Value: 0
request_terminate_timeout = 200s
Ok, it looks like i have found it in etc/nginx/conf.d/domains/ and then i see that all the conf files for all my domains are there. And i see that the code snippet is already in those files.
So it looks like all that is required is to check the box on the in the settings in the panel.
I’ve had it checked off for last 2 hrs and server is as slow as anything, so i guess that hasn’t helped my issue. PHP-FPM 7.4 is using 53% cpu right now.
Maybe i will try to revert back to Default mode in Magento instead of Production Mode. That was one of the changes that was made in past few weeks.
I reverted back to Magento Default mode and for about 30 minutes it seemed to have solved all my PHP-FPM issues. But then it went back to the same thing. PHP-FPM processes start hanging and eventually all my 8 child processes (thats my limit in pool.d file) are stuck and using a lot of CPU (not much memory though) . i wish i knew what is causing this.
For anyone who is moving/reverting magento from production to default or developer mode. I was getting errors at 1st when i ran php bin/magento deploy:mode:set default
Error was that generated Directories were not empty and could not be deleted. Just keep running the same command over and over. It takes some time for server to dump that much data. Eventually it went through after about 10-15 tries.