+ -
当前位置:首页 → 问答吧 → 怎样才能阻止apache 自动重启?

怎样才能阻止apache 自动重启?

时间:2011-08-26

来源:互联网

[Thu Aug 25 18:51:29 2011] [notice] Apache/2.2.8 (Win32) PHP/5.2.5 configured -- resuming normal operations
[Thu Aug 25 18:51:29 2011] [notice] Server built: Jan 18 2008 00:37:19
[Thu Aug 25 18:51:29 2011] [notice] Parent: Created child process 3992
httpd.exe: Could not reliably determine the server's fully qualified domain name, using for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain name, using for ServerName
[Thu Aug 25 18:51:29 2011] [notice] Child 3992: Child process is running
[Thu Aug 25 18:51:29 2011] [notice] Child 3992: Acquired the start mutex.
[Thu Aug 25 18:51:29 2011] [notice] Child 3992: Starting 300 worker threads.
[Thu Aug 25 18:51:29 2011] [notice] Child 3992: Starting thread to listen on port 80.
zend_mm_heap corrupted
[Fri Aug 26 08:53:54 2011] [notice] Parent: child process exited with status 1 -- Restarting.


红色标注的就是 windows 下 apache 自动重启了. 大概40几分钟的样子.

原因我知道,是因为我php跑了255个页 在扒别人网站的ip数据库...

没有使用ajax方式. 只是用php弄了个 for循环 每个页跑一个网段, 当然这个近似死循环的255个php 就是导致重启的原因.

那我现在想问 有没有方法能让 child process exited with status 1 -- Restarting 忽略这种重启的apache配置

作者: kiki44944   发布时间: 2011-08-26

zend_mm_heap corrupted

内存有问题了,所以才重新启动的。要避免重新启动,先解决内存的问题。应该是你程序没有处理好。

作者: icy_csdn   发布时间: 2011-08-26

内存问题.... 没发现哪能有内存问题
PHP code

// 255.
for($i1=$intStart;$i1<=255;$i1++){
    // 255.255
    for($i2=0;$i2<=255;$i2++){
        // 255.255.255
        for($i3=0;$i3<=255;$i3++){
                try{
                    $xml = @simplexml_load_file($strURL."$i1.$i2.$i3.1");
                    if(empty($xml->countryCode)) continue;
                    if($xml->countryCode != 'US') continue;
                }catch(Exception $e){
                    continue;
                }
        }
    }
}

作者: kiki44944   发布时间: 2011-08-26

热门下载

更多