By akassahun
A droplet hosting Magento 2 with apache was working fine for a long time. But since yesterday it has become unresponsive. When I ssh’ed into the machine and checked the server, I saw that apache has spawned >100 child processes while not having that much client req. load (this is only a testing site i.e. it is not live to customers). If anyone came across the issue, can you share with me your thoughts on how you overcame the issue (or any feedback on how to debug it will also be great)?
Thanks in advance
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @akassahun,
I’ve had similar cases, it was due to my MPM being set as prefork. I found that MPM_event was the best option or at least in my opinion. You can read further about different options and how they work here :
https://httpd.apache.org/docs/2.4/mod/event.html
Having said that, PHP_FPM works pretty good with MPM_EVENT. I’ll recommend switching your MPM from prefork to event. Another good option is setting it to ‘worker’.
Regards, KFSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.