Skip to content
WJunction - Webmaster Forum

mysql eating 50-70% of cpu load

Status
Not open for further replies.
F7B6RU9.png



Hello all server admin please help me ,my vps having high load and when load reach upto 90% it crashes mysql then i have to restart mysql to make my website run ..


im totally noob in server thing someone told me to enter command TOP in order to see your ram and cpu usage

when i see it (as picture above) it shwoing 50% of just mysql usage sometimes it goes upto 60%

and this is crashing my website in every 10 minutes

HELP NEEDED
 

4 comments

First I would install htop and mytop. Both give you more information about your system.

As far as high cpu usage for mysql try editing my.cnf usually found in the folder etc.

Find the variable wait_timeout and change the value to 1200. If it is not there add it under the
Code:
[mysqld]
like this
Code:
wait_timeout = 1200

Then restart your mysql. This should hopefully take care of it.
 
Status
Not open for further replies.

About the author

I
Active Member · Joined
83
Messages
2
Reactions
8
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom