首页 > 开发 > Apache > 正文

有关apache的pid退出错误问题

2018-10-16 21:21:42
字体:
来源:转载
供稿:网友

  编译安装的apache2.059版本,没有编译proxy模块,后来使用apxs命令编译的proxy模块,启动没有报错,proxy功能可以实现.

  Httpd.conf中有如下配置:

  

  StartServers 5

  MinSpareServers 5

  MaxSpareServers 10

  ServerLimit 2000

  MaxClients 400

  MaxRequestsPerChild 8000

  

  即子进程接受8000个请求后退出.

  问题:

  apache启动一段大概3分钟后出现大量下面的错误

  [Thu Aug 09 12:55:59 2007] [notice] child pid 28572 exit signal Segmentation fault (11)

  [Thu Aug 09 12:55:59 2007] [notice] child pid 28574 exit signal Segmentation fault (11)

  [Thu Aug 09 12:56:00 2007] [notice] child pid 28580 exit signal Segmentation fault (11)

  [Thu Aug 09 12:56:18 2007] [notice] child pid 28578 exit signal Segmentation fault (11)

  [Thu Aug 09 12:56:22 2007] [notice] child pid 28566 exit signal Segmentation fault (11)

  [Thu Aug 09 12:56:22 2007] [notice] child pid 28596 exit signal Segmentation fault (11)

  google上搜了一下,都是关于PHP引起的错误,可是我的网站使用的是java.

  偶尔看到一篇文章提到了apache的模块,想起自己当时编译proxy模块的方法:

  /opt/apache/bin/apxs -c -i *.c

  虽然proxy文件夹下有好多模块,不过似乎只是编译了proxy.so这个模块.'

  推断可能是和 proxy模块有关系.

  解决:

  重新编译安装apache

  /configure --prefix=/opt/apache --enable-so --enable-mods-shared="proxy proxy_http proxy_ftp proxy_connect headers"

  启动apache,问题解决.

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表