Apache 每个子线程数
我们的一个第三方企业应用程序使用 Apache 2.2.15 x86,
ThreadsPerChild 为 1920(默认上限),
在 Windows 7 x64(开发机)上运行
,运行一夜,Windows 操作系统的提交大小稳步上升,并且没有请求被发送到 Apache。
阅读 http://blogs.technet.com/b/markrussinovich /archive/2009/07/08/3261309.aspx ,
问题:
x86 进程是否有可能如此多的线程只会让 Windows 花费大量开销,并且它将达到 1.6GB 的虚拟内存大小(来自 Process Explorer,当 httpd.exe 子进程生成时)
之前有没有人体验过用这么多线程运行 Apache(1920 年)
One of our third party enterprise application uses Apache 2.2.15 x86,
with a ThreadsPerChild of 1920 (default upper limit),
running on Windows 7 x64 (development machine)
Running it overnight, the commit size of Windows OS steadily creeps up, and no request is sent to Apache.
Reading
http://blogs.technet.com/b/markrussinovich/archive/2009/07/08/3261309.aspx ,
Questions:
Is it possible that an x86 process with that many threads simply costs Windows a lot of overhead and it will hit its Virtual Memory Size of 1.6GB (from Process Explorer, when httpd.exe child is spawned)
Have anybody experience running Apache with this many threads before (1920)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
线程从来都不是按比例构建的(恕我直言)。也许是时候研究一下异步请求处理系统了?就像“nginx”..
Threading was never built to scale (IMHO). Maybe its time to look into an asynchronous request handling system? Like 'nginx'..