From: Bill Stoddard Date: Wed, 28 Aug 2002 18:23:05 +0000 (+0000) Subject: Win32: Lower the default stack size from 1MB to 256KB. This will allow X-Git-Tag: AGB_BEFORE_AAA_CHANGES~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f521f0f28d3ab56994307bc7f47183e8e40864a4;p=thirdparty%2Fapache%2Fhttpd.git Win32: Lower the default stack size from 1MB to 256KB. This will allow a child process to start about 4 times as many threads (~8000 from ~2000) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96556 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/Apache.dsp b/Apache.dsp index 4a0bf218854..9047654ac7e 100644 --- a/Apache.dsp +++ b/Apache.dsp @@ -50,7 +50,7 @@ BSC32=bscmake.exe # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib ws2_32.lib mswsock.lib /nologo /subsystem:console /map /machine:I386 -# ADD LINK32 kernel32.lib user32.lib advapi32.lib ws2_32.lib mswsock.lib /nologo /subsystem:console /map /machine:I386 +# ADD LINK32 kernel32.lib user32.lib advapi32.lib ws2_32.lib mswsock.lib /nologo /stack:0x40000 /subsystem:console /map /machine:I386 !ELSEIF "$(CFG)" == "Apache - Win32 Debug" @@ -75,7 +75,7 @@ BSC32=bscmake.exe # ADD BSC32 /nologo LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib advapi32.lib ws2_32.lib mswsock.lib /nologo /subsystem:console /incremental:no /map /debug /machine:I386 -# ADD LINK32 kernel32.lib user32.lib advapi32.lib ws2_32.lib mswsock.lib /nologo /subsystem:console /incremental:no /map /debug /machine:I386 +# ADD LINK32 kernel32.lib user32.lib advapi32.lib ws2_32.lib mswsock.lib /nologo /stack:0x40000 /subsystem:console /incremental:no /map /debug /machine:I386 !ENDIF diff --git a/CHANGES b/CHANGES index ed84035d161..517bb60c26b 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,11 @@ Changes with Apache 2.0.41 - *) Implement ThreadLimit directive in the Windows MPM. + *) Win32: Lower the default stack size from 1MB to 256K. This will + allow around 8000 threads to be started per child process. + 'EDITBIN /STACK:size apache.exe' can be used to change this + value directly in the apache.exe executable. + [Bill Stoddard] + + *) Win32: Implement ThreadLimit directive in the Windows MPM. [Bill Stoddard] *) Remove CacheOn config directive since it is set but never checked.