Bug 439776 - apr_thread_create: unable to create worker thread
Summary: apr_thread_create: unable to create worker thread
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: httpd   
(Show other bugs)
Version: 3.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Joe Orton
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2008-03-31 11:49 UTC by Gomathi Raja
Modified: 2008-09-04 14:26 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-09-04 13:45:58 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Gomathi Raja 2008-03-31 11:49:30 UTC
Description of problem:
Os : RHEL AS 3 
Apache : httpd-2.0.46-46.ent

Error on server - (12)Cannot allocate memory: 
apr_thread_create: unable to create worker thread


Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:

Comment 1 Gomathi Raja 2008-03-31 14:01:49 UTC
See below,

<IfModule worker.c>
ServerLimit        900
StartServers         5
MaxClients        8192
MinSpareThreads     75
MaxSpareThreads    250
ThreadsPerChild     64
MaxRequestsPerChild 10000

Comment 2 Gomathi Raja 2008-03-31 16:31:46 UTC
anyupdate ? 

Comment 3 Joe Orton 2008-03-31 16:59:35 UTC
Thread creation is limited by available RAM; if you try to create more threads
than RAM allows, it's expected that you'll get a failure like this.

If you adjust the configuration such that it will not try to create more threads
than RAM is reasonably available, you shouldn't see this error.

Comment 4 Gomathi Raja 2008-03-31 17:10:11 UTC
Have enough memory,
             total       used       free     shared    buffers     cached
Mem:          3936       2829       1106          0        114       2126
-/+ buffers/cache:        589       3347
Swap:         8191          0       8191

Anything other than RAM? 
my accesslog comes around 2GB is that a problem?

Note: traffic is high in our server.

Comment 5 Joe Orton 2008-03-31 20:12:01 UTC
It's not clear exactly what bug are you reporting here?  The error_log message
you describe in and of itself should be harmless, and is an expected result of
configuring the server to use more threads than the system can handle.

Lowering ServerLimit and/or ThreadsPerChild will reduce the overall number of
threads required, so should avoid the error.

I strongly suggest you call Red Hat Support to help you work through this problem.

Comment 6 Gomathi Raja 2008-09-04 14:25:42 UTC
it's resolved by reducing the thread values and upgraded to the latest httpd version.

Comment 7 Gomathi Raja 2008-09-04 14:26:43 UTC
it's resolved by reducing the thread values and upgraded to the latest httpd version.

Note You need to log in before you can comment on or make changes to this bug.