Apache的Terminating 1 threads that failed to exit的解决办法
由于APACHE运行的时候会占用大量的系统内存,我们可以根据实际情况调整MaxRequestsPerChild 的值降低内存的消耗,但注意部分APACHE2.2X无法正常工作,本人推荐使用APACHE2.2.8,这个版本比较稳定.
本人运行结果大致如下:
[Wed Mar 25 21:32:39 2009] [notice] Child 3360: Listening on port 80.
[Wed Mar 25 21:33:10 2009] [notice] Child 4128: Waiting 30 more seconds for 12 worker threads to finish.
[Wed Mar 25 21:33:43 2009] [notice] Child 4128: Waiting 0 more seconds for 8 worker threads to finish.
[Wed Mar 25 21:33:43 2009] [notice] Child 4128: Terminating 8 threads that failed to exit.
[Wed Mar 25 21:33:43 2009] [notice] Child 4128: All worker threads have exited.
[Wed Mar 25 21:33:48 2009] [notice] Child 4128: Child process is exiting
这样就表示可以正常工作了,如果内存仍然消耗过大,请调整MaxRequestsPerChild的大小,本人的是
MaxRequestsPerChild 10000