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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Trying to reduce CPU consumption

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

  1. AGuyInFL

    AGuyInFL Member

    Joined:
    Jul 20, 2015
    Messages:
    10
    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,672
    Likes Received:
    73
    Trophy Points:
    28
    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
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,455
    Likes Received:
    1,608
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page