Apache crashing Invalid argument: couldn't grab the accept mutex
Situation: The apache error log show this error:
[Tue Jan 17 11:02:08 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Tue Jan 17 11:02:08 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Tue Jan 17 11:02:08 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Tue Jan 17 11:02:09 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Tue Jan 17 11:02:10 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Tue Jan 17 11:02:10 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Tue Jan 17 11:02:11 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Tue Jan 17 11:02:14 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Tue Jan 17 11:02:14 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Tue Jan 17 11:02:14 2012] [emerg] (22)Invalid argument: couldn't grab the accept mutex
===
Solution:
Typically, these type of errors occur on systems low on memory or file handlers.
Of note, one suggested resolution for the error message would be to try adding the following line to
/usr/local/apache/conf/httpd.conf file:
AcceptMutex fcntl
Run apache distiller
/usr/local/cpanel/bin/apache_conf_distiller --update --main
/scripts/rebuildhttpdconf
/etc/init.d/httpd graceful
===