I'm trying to kill a long running PHP process on the Mac (Lion), running a UAMP stack (zend server, unix/apache/mysql/php).
我试图杀死Mac上的长期运行PHP进程(Lion),运行UAMP堆栈(zend服务器,unix / apache / mysql / php)。
When I run the "top" command, I can't see a PHP process anywhere. I know it's hitting at least 100% CPU, because I can hear the fan, but I don't see anything with high CPU usage. I also can see the process logging things because I'm streaming the log file. On top of this, my browser is still waiting for the request.
当我运行“top”命令时,我无法在任何地方看到PHP进程。我知道它至少可以达到100%的CPU,因为我可以听到风扇,但我没有看到任何高CPU使用率的东西。我也可以看到进程记录的过程,因为我正在流式传输日志文件。除此之外,我的浏览器仍在等待请求。
UPDATE: Thanks for the hint about activity monitor. It appears that I had to look under ALL PROCESSES and found httpd running at 100%. Thanks again all.
更新:感谢有关活动监视器的提示。看来我必须在ALL PROCESSES下查看并发现httpd以100%运行。再次感谢所有人。
1 个解决方案
#1
3
On a typical UAMP stack, PHP is running via mod_php
, which doesn't start a separate PHP process. You'd need to kill the apache worker which is serving the request.
在典型的UAMP堆栈上,PHP通过mod_php运行,它不会启动单独的PHP进程。你需要杀死正在提供请求的apache worker。
#1
3
On a typical UAMP stack, PHP is running via mod_php
, which doesn't start a separate PHP process. You'd need to kill the apache worker which is serving the request.
在典型的UAMP堆栈上,PHP通过mod_php运行,它不会启动单独的PHP进程。你需要杀死正在提供请求的apache worker。