Excessive resource usage /bin/sh /usr/bin/mysqld_safe --basedir=/usr

trover

Verified User
Joined
Nov 4, 2015
Messages
76
Hi,

is there way to trace and solve main issue? or this is fine and no need to fix?

Code:
Account:      mysql
Resource:    Process Time
Exceeded:    233834 > 5000 (seconds)
Executable:  /usr/bin/bash
Command Line: /bin/sh /usr/bin/mysqld_safe --basedir=/usr


note: i know i can add mysql to csf.pignore but not is my priority.
 
That's not an issue, is just mysql running for a long time :)

To add to pignore use:
Code:
echo "exe:/usr/bin/mysqld_safe" >> /etc/csf/csf.pignore
/etc/init.d/lfd restart

Best regards
 
That's not an issue, is just mysql running for a long time :)

yes but its new installation (on centos 7) and without user (host account) ... so is this normal? also its happen after reboot.
(my centos 6 servers do not have such a problem)


Regards
 
MySQL Server is always started at startup, doesn't really matter if it is used by users or not.

Maybe on your CentOS6 you already have it in csf.pignore or you're not using CSF at all or is disabled for some reason.

Regards
 
MySQL Server is always started at startup, doesn't really matter if it is used by users or not.

Maybe on your CentOS6 you already have it in csf.pignore or you're not using CSF at all or is disabled for some reason.

Regards

in csf.pignore i have "exe:/usr/sbin/mysqld_safe" so now i add "exe:/usr/bin/mysqld_safe"

Thanks
 
yes but its new installation (on centos 7)
You could check with
Code:
whereis mysqld_safe
and maybe also the same with mysqld.

maybe in Centos 7 it's in /usr/bin while in Centos 6 it's in /usr/sbin which might explain the difference and the reason this notice came up in Centos 7. I'm not sure because I don't use Centos 7 yet.
 
Same Issue, but can't resolve it

Hi all,

I'm getting exactly the same notifications as in the original post, but all my attempts at ignoring have not worked...

Code:
Executable:   /usr/bin/bash
Command Line: /bin/sh /usr/bin/mysqld_safe --basedir=/usr

Is it because the executable is bash? I don't want to ignore that.
Is it because of the
Code:
--basedir=/usr
argument on the command line? Blocking the whole command line isn't working either.

In csf.pignore, I've got all these:
exe:/usr/sbin/mysqld
exe:/usr/sbin/mysqld_safe
exe:/usr/bin/mysqld
exe:/usr/bin/mysqld_safe
exe:"/usr/bin/mysqld_safe --basedir=/usr"

Would love some hints!
 
Can you try:
cmd:/bin/sh /usr/bin/mysqld_safe --basedir=/usr

Afterwards restart the LFD process! (not just csf)
 
Hi,
Add:
Code:
cmd:/bin/sh /usr/bin/mysqld_safe --basedir=/usr
in:
Code:
/etc/csf/csf.pignore
 
Back
Top