Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Trying to reduce CPU consumption

Discussion in 'Database Discussion' started by AGuyInFL, Jan 31, 2018.

  1. AGuyInFL

    AGuyInFL Member

    Joined:
    Jul 20, 2015
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    US
    cPanel Access Level:
    Website Owner
    I noticed that in System Health > Process Manager this command:

    /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/my.mysite.com.err --open-files-limit=16384 --pid-file=/var/lib/mysql/my.mysite.com.pid

    consumes 40-50% CPU and 2-3% memory.

    Can someone explain what this command is all about?

    Is there something in it I can disable to reduce the CPU consumption? Maybe the log_error? If I disable it via my.cnf what should I replace it with? log_error = ""?
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,878
    Likes Received:
    89
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    This is a MySQL command that runs in background when you start the MySQL service.. If you want to check the mysql usage/coonection, you can use the bellow command:
    # mysqladmin proc
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    As noted in the previous post, that process is your MySQL server. It's normal for it to run at all times when MySQL is started. There's a thread here for tuning your MySQL configuration to increase performance if that's what you are seeking:

    mysqlmymonlite.sh server stats gathering tool for cPanel Server

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice