Skip to main content

MySQL high CPU load, nothing releavant on processlist

Comments

8 comments

  • GOT
    What is the output of mysqladmin stat ? Finding the specific user if the running queries are not obvious is tricky.
    0
  • Manoa R.
    What is the output of mysqladmin stat ? Finding the specific user if the running queries are not obvious is tricky.

    [QUOTE] [root@web46 ~]# mysqladmin stat Uptime: 78960 Threads: 223 Questions: 166174857 Slow queries: 3651 Opens: 1296424 Flush tables: 1 Open tables: 5000 Queries per second avg: 2104.544
    0
  • GOT
    2100 qps is pretty high I'm not surprised you are seeing load issues. I would start with looking at which sites are using the most bandwidth. It would not surprise me if one or two are using a lot more than the others.
    0
  • cPanelLauren
    Let us know if you have any further questions after checking into the advice provided by @GOT
    0
  • Manoa R.
    At this time, the concerned server load average is fine (8-10 on 12 CPU) without any action from my side. I'll wait if it happens again and I'll surely try to handle users which run a lot of queries. However, in another server, I have same issue, high load average (17 on 16 CPU) but just 800 qps on mysqladmin. Should I still limit queries on some users? (I see users having 400 000+ selects commands in just a few minutes of users stats activation on MySQL)
    0
  • cPanelLauren
    If you'd like to lower the usage and impose limits on your users then I would say yes you should.
    0
  • Manoa R.
    In other words, the DB Governor shipped with CloudLinux is not enough reliable to keep everyone inside their LVE limits? I had to write a BASH script to detect these overloading users and to limit manually their MySQL users.
    0
  • cPanelLauren
    What exactly was not sufficient? Did you look at the documentation? Understanding how CloudLinux's features work might save you some frustration of not only writing scripts but also understanding what to expect CloudLinux OS components
    0

Please sign in to leave a comment.