You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ng Kean Thian <ke...@b2b.com.my> on 2012/06/25 13:34:58 UTC

[users@httpd] maximum MPM winnt thread supported in apache http server

Dear all,
I have configured my Apache HTTP Server's MPM maximum thread with the
following configuration:

<IfModule mpm_winnt_module>
       	ThreadsPerChild      3465
       	MaxRequestsPerChild    0
	ThreadLimit 4000
</IfModule>

Whenever I configured the 'ThreadsPerChild' with a value more than 3463, I
will hit '(OS 8)Unrecognized Win32 error code 8: Child 3316: _beginthreadex
failed. Unable to create all worker threads. Created 3463 of the 3500
threads requested with the ThreadsPerChild configuration directive.'. My
apache http server is running in Windows Server 2008 R2 64 bit.

Would like to check, is that the maximum thread creatable? If it is not,
what could be the possible reasons causing the error?

Regards,
KT



Disclaimer : This E-mail is intended only for the use of the individual or entity named above and may contain information that is confidential. If you are not the intended recipients, please immediately notify us by return email and delete it from your system. Any unauthorised dissemination, distribution or copying of this email is strictly prohibited. Thank You.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] maximum MPM winnt thread supported in apache http server

Posted by Eric Covener <co...@gmail.com>.
On Mon, Jun 25, 2012 at 7:34 AM, Ng Kean Thian <ke...@b2b.com.my> wrote:
> Dear all,
> I have configured my Apache HTTP Server's MPM maximum thread with the
> following configuration:
>
> <IfModule mpm_winnt_module>
>        ThreadsPerChild      3465
>        MaxRequestsPerChild    0
>        ThreadLimit 4000
> </IfModule>
>
> Whenever I configured the 'ThreadsPerChild' with a value more than 3463, I
> will hit '(OS 8)Unrecognized Win32 error code 8: Child 3316: _beginthreadex
> failed. Unable to create all worker threads. Created 3463 of the 3500
> threads requested with the ThreadsPerChild configuration directive.'. My
> apache http server is running in Windows Server 2008 R2 64 bit.
>
> Would like to check, is that the maximum thread creatable? If it is not,
> what could be the possible reasons causing the error?

You're process is growing past 2GB.  Use a 64-bit build if you want
lots of threads on 64-bit windows. Each thread takes up some address
space size and you quickly run out in a 32-bit process on a 64-bit
Windows.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org