Skip to main content

Excessive resource usage: mysql

Comments

8 comments

  • dalem
    MySQL runs all the time you need to set your csf firewall to ignore add exe:/usr/sbin/mysqld_safe to your csf pignore
    0
  • Clixer
    Thanks Dalem. So you dont see any issues with the MySQL performance?
    0
  • dalem
    Not from the info you posted
    0
  • cPanelLauren
    Thanks for the response on this @dalem! @Clixer please let us know if you have any other issues with this.
    0
  • Clixer
    Hello @dalem and @cPanelLauren. I have found that the following two entries are already in the csf.pignore file exe:/usr/sbin/mysqld exe:/usr/sbin/mysqld_safe This file is at location: /etc/csf/csf.pignore. Any ideas as to why the lfd is still sending the email notifications? Thanks for help.
    0
  • cPanelLauren
    Hi @Clixer The exe you're referencing is not the same one you received the email about. It looks like the exe should be Executable: /usr/bin/bash
    Though as a whole I don't think it's a good idea to add /usr/bin/bash to that list. The primary reason you're getting that notification is that the runtime of the process exceeded the threshold set by LFD's PT_USERTIME setting. Basically, CSF says the process ran too long or abnormally long. If the length of time a process runs is inconsequential to you can modify the PT_USERTIME setting to ignore this, or you can increase it, though you may risk hitting it again if it starts complaining about bash.
    0
  • Clixer
    Hi @cPanelLauren. Thank you for further advice. My computing knowledge is limited but mysqld is a process which should be running all the time. The websites hosted on the VPS are database driven, calls to the database will be made whenever a visitor requests a page which is not cached. I am at a loss as to why mysqld process should have a time limit. Technically, unless the VPS is rebooted, myslqd would continue to run, hence I am not sure what maximum time I could use? I have used the maximum allowed of 86400. I am assuming lfd will continue to send me email notification every 24 hours.
    0
  • cPanelLauren
    Hi @Clixer I agree, though in this case it wasn't mysql that it was actually complaining about, it was bash. The same predicament stands though, the only way to stop this is either set /usr/bin/bash to be ignored, disable the PT_USERTIME setting, or modify it though in this instance I don't think modifying PT_USERTIME to a higher threshold would stop you from receiving the email. You could also leave it as is and self-verify the process' legitimacy (processes like httpd, mysql, etc are processes that normally run for extended amounts of time. You could also check over at the CSF forums for further advice on this, they may be able to provide you with some advice on customizations that will work for you. You can find the CSF forum here: ConfigServer Community Forum - Index page
    0

Please sign in to leave a comment.