High CPU Usage Mysql

Hi, I am browsing my websites. when I tried to browsing, CPU usage is more than 100%. ca you give me some assistance on this please and websites are getting very slow.

Looking forwards to hearing from you ASAP.

Guru

2 Replies

Hi Guru! I'd recommend running the top command on your Linode to figure out which processes are using the most CPU time. We have a guide on top here:

Using top to Monitor Server Performance

From there, if you find that MySQL or Apache are using all available CPU time, consider resizing to a larger Linode plan. You may also want to try optimizing MySQL or Apache:

Tuning Your Apache Server

How to Optimize MySQL Performance Using MySQLTuner

Hi

Try to:

  1. Find slow queries in slow log file.
  2. Use command "show processlist" to display MySQL current queries.

Also you could see some resources about MySQL Performance at https://github.com/Releem/awesome-mysql-performance

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct