Is my apache cpu usage normal?

Mr-Pro

Verified User
Joined
Dec 19, 2017
Messages
30
Hello guys ,

Using top command , I can see that when I open my website , cpu load reaches 6 and then it goes back to 0 . Is it normal ? Should cpu load increase 6 units on each visit ? Does it mean that if 10 people visit my website at the same time , I will have cpu load of 60 ?

Is there anything I can do for this ? My apache uses event MPM and also I use nginx as a reverse proxy infront of apache .

Regards ,
 
Hello,

I would not say it's a normal situation for a regular CMS. We don't know your setup, what kind of a PHP application you run and how much records you have in MySQL DB.

You might need to (not sorted in a priority order):

1. check your server for malware, probably your PHP scripts are infected and hence they create extra load
2. review your PHP application, MySQL tables, indexes, remove old records
3. enable caching whenever it's possible and suitable
4. check hardware details and make sure you've got sufficient RAM and CPU power.
5. upgrade your PHP applications and modules
 
Hi there , problem is solved by installing opcache on server and w3 total cache on wordpress . Thanks ,
 
You have a poorly written plugin or theme. Check for newer versions or disable plugins one by one until you find which is the bad one.
 
Back
Top