无效参数:无法使用 apache 获取接受互斥锁

Posted

技术标签:

【中文标题】无效参数:无法使用 apache 获取接受互斥锁【英文标题】:Invalid argument: couldn't grab the accept mutex with apache 【发布时间】:2015-07-08 08:53:17 【问题描述】:

** 运行httpd-2.2.3 CQ5.6.1 centos 5.10**

一切运行正常,但不知何故 apache 停止工作,我通过浏览器访问进行检查,但无法获取页面。 Apache 错误日志显示以下内容:

[Wed Apr 29 11:56:11 2015] [emerg] (43)Identifier removed: couldn't grab the accept mutex
[Wed Apr 29 11:56:11 2015] [alert] Child 11750 returned a Fatal error... Apache is exiting!
[Wed Apr 29 11:56:14 2015] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Wed Apr 29 11:56:14 2015] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Wed Apr 29 11:56:14 2015] [emerg] (22)Invalid argument: couldn't release the accept mutex
[Wed Apr 29 11:56:14 2015] [error] [client 10.207.146.175] (104)Connection reset by peer: proxy: error reading status line from remote server, referer: 
[Wed Apr 29 11:56:14 2015] [error] [client 10.203.146.81] (20014)Internal error: proxy: error reading status line from remote server myserver2.com, referer: 
[Wed Apr 29 11:56:14 2015] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Wed Apr 29 11:56:14 2015] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Wed Apr 29 11:56:15 2015] [emerg] (22)Invalid argument: couldn't grab the accept mutex
[Wed Apr 29 12:01:15 2015] [error] [client 10.203.60.43] (70007)The timeout specified has expired: proxy: error reading status line from remote server myserver2.com, referer: 
[Wed Apr 29 12:01:15 2015] [error] [client 10.203.60.43] proxy: Error reading from remote server returned by /bin/servlets/FavFundsServlet, referer: 
[Wed Apr 29 12:01:15 2015] [error] [client 10.207.146.175] (70007)The timeout specified has expired: proxy: error reading status line from remote server unauth.myserver2.com, referer: 
[Wed Apr 29 12:01:15 2015] [error] [client 10.207.146.175] proxy: Error reading from remote server returned by , referer: 
[Wed Apr 29 12:06:15 2015] [error] [client 10.207.146.175] (70007)The timeout specified has expired: proxy: error reading status line from remote server unauth.myserver2.com, referer: 
[Wed Apr 29 12:06:15 2015] [error] [client 10.203.60.43] (70007)The timeout specified has expired: proxy: error reading status line from remote server myserver2.com, referer: 
[Wed Apr 29 12:06:15 2015] [error] [client 10.207.146.175] proxy: Error reading from remote server returned by /error/servererror.html, referer: 
[Wed Apr 29 12:06:15 2015] [error] [client 10.203.60.43] proxy: Error reading from remote server returned by /error/servererror.html, referer: 
[Wed Apr 29 12:06:15 2015] [emerg] (22)Invalid argument: couldn't grab the accept mutex

谁能帮我弄清楚这实际上与什么有关,为什么会发生,我该如何解决这个问题。

提前致谢

【问题讨论】:

我也遇到了同样的问题,想知道是否可能是打开文件限制。 与***.com/q/50652808/1405981相同的问题? 【参考方案1】:

在 XAMPP (Mac) 上单击“配置”->“打开 conf 文件”->“是”,搜索“#Mutex default:logs”,删除“#”并保存。现在,在 XAMPP (Mac) 上重新启动 Apache Web 服务器。

它对我有用。

【讨论】:

以上是关于无效参数:无法使用 apache 获取接受互斥锁的主要内容,如果未能解决你的问题,请参考以下文章

Kotlin基础-扩展

iTunesConnect 无法接受邀请 - 无效年份

C函数接受值,即使它的参数是无效的

如何处理与Apache HttpClient的无效SSL证书

python argparse - 我可以只使用互斥的可选参数还是有更好的方法

获取 RSS 时为 foreach() 提供的 PHP 参数无效