网站首页 博客 Apache2.4高并发设置(Windows平台)
在httpd.conf中开启httpd-mpm
Include conf/extra/httpd-mpm.conf
httpd-mpm参数设置
# WinNT MPM # ThreadsPerChild: constant number of worker threads in the server process # MaxConnectionsPerChild: maximum number of connections a server process serves <IfModule mpm_winnt_module> ThreadsPerChild 2000 MaxConnectionsPerChild 200000 </IfModule> # The maximum number of free Kbytes that every allocator is allowed # to hold without calling free(). In threaded MPMs, every thread has its own # allocator. When not set, or when set to zero, the threshold will be set to # unlimited. <IfModule !mpm_netware_module> MaxMemFree 4000 </IfModule> <IfModule mpm_netware_module> MaxMemFree 4000 </IfModule>