apache并发数过高的错误

kailysky 撰写  

[Sun Mar 07 12:33:37 2010] [notice] Child 2316: Process exiting because it reached MaxRequestsPerChild. Signaling the parent to restart a new child process.
[Sun Mar 07 12:33:37 2010] [notice] Parent: Received restart signal — Restarting the server.
[Sun Mar 07 12:33:37 2010] [warn] (OS 10038)在一个非套接字上尝试了一个操作。  : setsockopt(SO_UPDATE_ACCEPT_CONTEXT) failed.
[Sun Mar 07 12:33:37 2010] [notice] Apache/2.0.63 (Win32) PHP/5.2.10 configured — resuming normal operations
[Sun Mar 07 12:33:37 2010] [notice] Server built: Jan 17 2008 22:58:29
[Sun Mar 07 12:33:37 2010] [notice] Parent: Created child process 1660
[Sun Mar 07 12:33:37 2010] [notice] Child 1660: Child process is running
[Sun Mar 07 12:33:38 2010] [notice] Child 2316: Released the start mutex
[Sun Mar 07 12:33:38 2010] [notice] Child 1660: Acquired the start mutex.
[Sun Mar 07 12:33:38 2010] [notice] Child 1660: Starting 500 worker threads. [这里500,是我在设置里面

<IfModule mpm_winnt.c>
ThreadsPerChild 500
MaxRequestsPerChild 10000
</IfModule>

这里ThreadsPerChild 就是并发数. MaxRequestsPerChild 子进程.MaxRequestsPerChild最高是19200

总的来说,apache承载能力不是很强.当热程序上的优化也有关系.


发表评论

Your email is never shared. 标记为 * 的为必填项目

*
*