You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Qingshan Xie <xi...@yahoo.com> on 2006/08/25 00:01:38 UTC

[users@httpd] ThreadsPerChild Limit?

Hi! All, 

   We have an Apache-2.0.54 instance running on a SUN
box  of Solaris 8, it runs as worker MPM.  I tried to
increase its ThreadsPerChild for our env requirement. 
Seems it's OK to push the limit to 350 ThreadsPerChild
but failed it's higher than 400.  The processes died
automatically and the error_log had the following
errors,

[Thu Aug 24 12:27:16 2006] [notice] Apache configured
-- resuming normal operations
[Thu Aug 24 12:27:16 2006] [alert] (11)Resource
temporarily unavailable: apr_thread_create: unable to
create worker thread
[Thu Aug 24 12:27:26 2006] [alert] Child 10446
returned a Fatal error... Apache is exiting!

Can someone tell me where this hard limit is set in
source code, and can I change it, or if there is a way
to push the ThreadsPerChild limit higher?

Many Thanks, Q.Xie


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] ThreadsPerChild Limit?

Posted by Joshua Slive <jo...@slive.ca>.
On 8/24/06, Qingshan Xie <xi...@yahoo.com> wrote:
> Hi! All,
>
>    We have an Apache-2.0.54 instance running on a SUN
> box  of Solaris 8, it runs as worker MPM.  I tried to
> increase its ThreadsPerChild for our env requirement.
> Seems it's OK to push the limit to 350 ThreadsPerChild
> but failed it's higher than 400.  The processes died
> automatically and the error_log had the following
> errors,
>
> [Thu Aug 24 12:27:16 2006] [notice] Apache configured
> -- resuming normal operations
> [Thu Aug 24 12:27:16 2006] [alert] (11)Resource
> temporarily unavailable: apr_thread_create: unable to
> create worker thread
> [Thu Aug 24 12:27:26 2006] [alert] Child 10446
> returned a Fatal error... Apache is exiting!
>
> Can someone tell me where this hard limit is set in
> source code, and can I change it, or if there is a way
> to push the ThreadsPerChild limit higher?

This means the pthread_create call is failing on your system.  This
could be because you are exceeding PTHREAD_THREADS_MAX.  But I don't
remember enough Solaris 8 stuff to know.  The important thing is that
there isn't really anything that can be done in apache about this,
other than lowering ThreasPerChild.  There may be an operating system
config that can help.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org