Is my apache cpu usage normal?

Mr-Pro

Verified User
Joined
Dec 19, 2017
Messages
19
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 ,
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,932
Location
GMT +7.00
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
 

Mr-Pro

Verified User
Joined
Dec 19, 2017
Messages
19
Hi there , problem is solved by installing opcache on server and w3 total cache on wordpress . Thanks ,
 

wattie

Verified User
Joined
May 31, 2008
Messages
1,039
Location
Bulgaria
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.
 
Top