我在Windows上安装了Apache + mod_php,但是我无法将它与Linux上使用的任何相关联。
它只有这个:
# ThreadsPerChild: constant number of worker threads in the server process # MaxRequestsPerChild: maximum number of requests a server process serves ThreadsPerChild 250 MaxRequestsPerChild 0
关于孩子。
httpd.exe只需要12MB的内存,如果我用一个带有30个并发连接的sleep(10)
的脚本进行“ab”testing,它只能达到30MB的使用,它可以把所有的一起使用! 我也在我的ubuntu vps也在mod_php上做了同样的事情,并得到30个并发连接,我不得不启动30台服务器,VPS基本上崩溃了,因为内存使用超过了200MB的Apache进程只。 所以问题是为什么使用的内存是多less?