Answer the question
In order to leave comments, you need to log in
How to find out why MySQL is using CPU?
I have been struggling with the mysql setup for several days now. I can't get stable work. Server 8 cores and 32 GB of RAM.
At first, the database was just slow in processing requests. For several days I set the parameters on the recommendation of mysqltuner. Now, on any mysql settings, most of the time mysql loads the processor to the full. LA on average stays at the level of 17 15 14. At the same time, RAM is occupied by no more than half. Several simple sites on wordpress, but most templates have self-written sql queries. For some reason, Object cache and caching plugins do not work very well: either they don’t cache at all, or the cache lives very little with any settings. All InnoDB tables.
Common log errors:
- upstream timed out (110: Connection timed out) while reading response header from upstream
- recv() failed (104: Connection reset by peer) while reading response header from upstream
- Lock wait timeout exceeded - set lock_wait_timeout = 20
- Waiting for table metadata lock - set autocommit = 0 in my.cnf
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question