php 每隔一段时间执行,Apache每隔一段时间崩溃PHP脚本运行... Windows

XAMPP安装(Apache,MySQL,PHP,Perl)在我通过PHP调用DOTNET对象时每隔一段时间就会崩溃。例如php.net上的示例代码

$stack = new DOTNET("mscorlib", "System.Collections.Stack");

$stack->Push(".Net");

$stack->Push("Hello ");

echo $stack->Pop() . $stack->Pop();

//$stack = NULL; tried this, with no luck

?>这将首次显示Hello .Net,但如果我刷新页面Apache崩溃并立即重新启动。如果我再次刷新,我会看到Hello .Net。如果我再次刷新,你猜对了; Apache崩溃....任何想法?也许我应该以某种方式释放对象?

谢谢

Apache日志:

[Wed Feb 29 00:59:44 2012] [notice] Apache/2.2.21 (Win32) SVN/1.6.6 DAV/2 mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations

[Wed Feb 29 00:59:44 2012] [notice] Server built: Sep 10 2011 11:34:11

[Wed Feb 29 00:59:44 2012] [notice] Parent: Created child process 5156

[Wed Feb 29 00:59:45 2012] [notice] Digest: generating secret for digest authentication ...

[Wed Feb 29 00:59:45 2012] [notice] Digest: done

[Wed Feb 29 00:59:46 2012] [notice] Child 5156: Child process is running

[Wed Feb 29 00:59:46 2012] [notice] Child 5156: Acquired the start mutex.

[Wed Feb 29 00:59:46 2012] [notice] Child 5156: Starting 150 worker threads.

[Wed Feb 29 00:59:46 2012] [notice] Child 5156: Starting thread to listen on port 443.

[Wed Feb 29 00:59:46 2012] [notice] Child 5156: Starting thread to listen on port 443.

[Wed Feb 29 00:59:46 2012] [notice] Child 5156: Starting thread to listen on port 80.

[Wed Feb 29 00:59:46 2012] [notice] Child 5156: Starting thread to listen on port 80.

[Wed Feb 29 00:59:49 2012] [notice] Parent: child process exited with status 3221225477 -- Restarting.

[Wed Feb 29 00:59:50 2012] [notice] Digest: generating secret for digest authentication ...

[Wed Feb 29 00:59:50 2012] [notice] Digest: done

[Wed Feb 29 00:59:51 2012] [notice] Apache/2.2.21 (Win32) SVN/1.6.6 DAV/2 mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations

[Wed Feb 29 00:59:51 2012] [notice] Server built: Sep 10 2011 11:34:11

[Wed Feb 29 00:59:51 2012] [notice] Parent: Created child process 5948

[Wed Feb 29 00:59:51 2012] [notice] Digest: generating secret for digest authentication ...

[Wed Feb 29 00:59:51 2012] [notice] Digest: done

[Wed Feb 29 00:59:52 2012] [notice] Child 5948: Child process is running

[Wed Feb 29 00:59:52 2012] [notice] Child 5948: Acquired the start mutex.

[Wed Feb 29 00:59:52 2012] [notice] Child 5948: Starting 150 worker threads.

[Wed Feb 29 00:59:52 2012] [notice] Child 5948: Starting thread to listen on port 443.

[Wed Feb 29 00:59:52 2012] [notice] Child 5948: Starting thread to listen on port 80.

[Wed Feb 29 00:59:52 2012] [notice] Child 5948: Starting thread to listen on port 80.

[Wed Feb 29 00:59:52 2012] [notice] Child 5948: Starting thread to listen on port 443.

[Wed Feb 29 00:59:55 2012] [notice] Parent: child process exited with status 3221225477 -- Restarting.

[Wed Feb 29 00:59:55 2012] [notice] Digest: generating secret for digest authentication ...

[Wed Feb 29 00:59:55 2012] [notice] Digest: done

[Wed Feb 29 00:59:57 2012] [notice] Apache/2.2.21 (Win32) SVN/1.6.6 DAV/2 mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations

[Wed Feb 29 00:59:57 2012] [notice] Server built: Sep 10 2011 11:34:11

[Wed Feb 29 00:59:57 2012] [notice] Parent: Created child process 4596

[Wed Feb 29 00:59:58 2012] [notice] Digest: generating secret for digest authentication ...

[Wed Feb 29 00:59:58 2012] [notice] Digest: done

[Wed Feb 29 00:59:59 2012] [notice] Child 4596: Child process is running

[Wed Feb 29 00:59:59 2012] [notice] Child 4596: Acquired the start mutex.

[Wed Feb 29 00:59:59 2012] [notice] Child 4596: Starting 150 worker threads.

[Wed Feb 29 00:59:59 2012] [notice] Child 4596: Starting thread to listen on port 443.

[Wed Feb 29 00:59:59 2012] [notice] Child 4596: Starting thread to listen on port 80.

[Wed Feb 29 00:59:59 2012] [notice] Child 4596: Starting thread to listen on port 443.

[Wed Feb 29 00:59:59 2012] [notice] Child 4596: Starting thread to listen on port 80.这显示一些重新启动。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值