My AWS CPU Utilization goig very high bcz on nginx

Dear Team I have aws with nginx server for my magento store

but last 4 dys i found some times my cpu utilization going very high more than 90% but my website visit very less

that time i check with Top commend i found too much nginx process are running

can u help me for fixing this issue ?

please check this image

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there @shiraski,

It looks like there are a lot of PHP-FPM processes that are causing the high CPU usage on your server.

What I could suggest is using this script here which will summarize your Nginx access logs. That way you will be able to tell if the traffic that you are getting is legitimate or not.

If the traffic is legitimate, I would recommend doing some optimization for your Magento server so that it does not need so much CPU resources. For example as a start you could do:

  • Enable caching
  • Enable flat catalogue
  • Add a CDN in front of your web server
  • Enable PHP OpCache

Let me know how it goes. Regards, Bobby