cancel
Showing results for 
Search instead for 
Did you mean: 

CPU Usage shows 100% use and some time Lawer then 100 after live Magento 2 Site

CPU Usage shows 100% use and some time Lawer then 100 after live Magento 2 Site

i have live the magento 2 site,

but site was too slow and some times show 500 error also, when i check in server it shows CPU Usage 100%,

i have talk with server, and their response is....

 

9833 fmsprod 20 0 345960 24372 4440 R 47.5 0.0 0:01.71 lsphp:/home/fmsprod/public_html/index.php,

29762 fmsprod 20 0 364500 45740 7188 R 46.7 0.1 0:03.74 lsphp:/home/fmsprod/public_html/index.php,

29865 fmsprod 20 0 339696 17908 4092 R 5.1 0.0 0:00.14 lsphp:/home/fmsprod/public_html/index.php

 

It appears there are three processes from a single access to the site. Then when having multiple concurrent access to the site, there with be many processes generated, making it likely that CPU usage hits 100%. I suggest asking the devs to investigate this and optimize the site so as to reduce the processes.

and im developer of this site, Now What i have to do for Fix this Situation please help me on this.

Thanks,

1 REPLY 1

Re: CPU Usage shows 100% use and some time Lawer then 100 after live Magento 2 Site

What caching system are you running at the moment?

 

You'll want to look into a full page cache solution like Varnish or LiteMage Cache. 

 

The other less efficient alternative is to upgrade your server so you will have more CPU resources.