tonlmy1015 发表于 2013-12-18 21:03

apache假死?

内网有台apahce服务器,apache 是源代码编译安装,
把apache stop后, 再start 等待几十秒才起来。
日志报错如下:
caught SIGTERM, shutting down
Digest: generating secret for digest authentication ...
Digest: done
Apache/2.2.4 (Unix) DAV/2 PHP/5.2.3 configured -- resuming normal operations

谷歌,说是共享内存无法释放造成的可能APACHE无法起来,
用ipcs -s|grep www查看
key      semid      owner      perms      nsems   
0x00000000 0          root       600      1         
0x00000000 65537      root       600      1         
0x00000000 1900546    www    600      1         
0x00000000 1933315    www   600      1

执行命令删除:
ipcs -s | grep www|perl -e 'while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a`}'再start 就可以起来
但是,下次再重启apahce还是要等待几十秒才起来,
请各位指教

action08 发表于 2013-12-19 19:21

你用的unix???

tonlmy1015 发表于 2013-12-20 09:18

centos 回复 2# action08


   

webdna 发表于 2013-12-24 13:40

这个是内存用完不释放的原因,你就写个脚本自动重启服务器吧

tonlmy1015 发表于 2013-12-24 14:34


重启服务器。。。。。。。。。。。。。。
回复 4# webdna


   
页: [1]
查看完整版本: apache假死?