Skip to main content

High CPU usage for /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid

Comments

10 comments

  • User Avatar
    HostNoc
    Hi From the stats you shared, it seems your mysql query goes in to sleep status and it did not execute, so please check your queies which is going in sleep mode and optimize it regards
    0
  • User Avatar
    cPRex Jurassic Moderator
    I agree with the "sleep" state issue, but you may want to try this slightly different command to get a summary of what is happening on the server as well: mysqladmin proc status
    as this will give you an overview of what the MySQL server is processing on the machine in real-time.
    0
  • User Avatar
    sanzatg
    Any idea where I can find an expert to look into this for me?
    0
  • User Avatar
    cPRex Jurassic Moderator
    We have a list of admins that advertise their specialty with cPanel servers here:
    0
  • User Avatar
    khnaz35
    mysqladmin proc status
    as this will give you an overview of what the MySQL server is processing on the machine in real-time.

    I am also seeing the same on my server. But when running the code for real time all seems ok. Screenshot But yet Sql is using 32% of memory. Screenshot
    0
  • User Avatar
    cPRex Jurassic Moderator
    I see your open_tables is sitting at 2000. Is that the limit on your server? You can fun this command directly from SSH to see that number: mysql -e "show variables;" | grep table_open_cache
    If that is set to 2000 and you're hitting your limit, consider raising that value. This should let MySQL use more RAM, but less CPU.
    0
  • User Avatar
    khnaz35
    Thanks for getting back to me. I did run this command and can see that my limit is set to 2000 ModSecurity" Tools "
  • Screenshot &
  • 0
  • User Avatar
    retechpro
    I"ve same issue
    0
  • User Avatar
    cPRex Jurassic Moderator
    @retechpro - did you try the checks I mentioned?
    0
  • User Avatar
    cPRex Jurassic Moderator
    @khnaz35 - it would be best to start a new thread for the ModSecurity issues. However, the files don't need to exist on your server for a rule to be tripped.
    0

Please sign in to leave a comment.