S
S
Stepan2013-02-12 16:44:58
MySQL
Stepan, 2013-02-12 16:44:58

Help with mysql

At 3 am, the base was hit like a hammer. All requests in Sending data…
Even primitive requests like select id are executed for half an hour.
There is no load on the server. LA 0, Mysql eats 600% CPU.

Since 3 am, I can’t solve the problem in any way ...
Absolutely nothing has changed either in scripts or in configs. Everything worked perfectly for several months.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
L
la0, 2013-02-12
@la0

1. Make sure that everything is OK with the disks. Maybe they just ate all the IO (the raid fell apart, for example.)
2. Make sure that you do not have a sudden fragmentation of the database.
3. Remove the load from the muscle and make sure that it somehow works without it (eg log in and request a list of processes)
4. Make sure that the show processlist is an adequate picture.
Usually this is enough.

N
nochkin, 2013-02-13
@nochkin

I would check the disks if possible. Especially if it's a single drive without a raid.

Y
Yuri Popov, 2013-02-12
@DjPhoeniX

Restarting MySQL doesn't help? What OS, what version, what interfaces are used (php-mysql, php-mysqli, php-mysqlnd, PDO, etc...)

M
miragenn, 2013-02-12
@miragenn

Try reloading the hanging tables with mysqldump.

A
Andrew, 2013-02-13
@Morfi

It helped us to upgrade to mysql 5.6

1
1x1, 2013-02-13
@1x1

Exactly the same symptoms with innodb + file-per-table + commonly used temporary tables.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question