Bug 439776 - apr_thread_create: unable to create worker thread
apr_thread_create: unable to create worker thread
Status: CLOSED INSUFFICIENT_DATA
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: httpd (Show other bugs)
3.0
i386 Linux
low Severity high
: ---
: ---
Assigned To: Joe Orton
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-31 07:49 EDT by Gomathi Raja
Modified: 2008-09-04 10:26 EDT (History)
0 users

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


Attachments (Terms of Use)

  None (edit)
Description Gomathi Raja 2008-03-31 07:49:30 EDT
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:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Gomathi Raja 2008-03-31 10:01:49 EDT
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 12:31:46 EDT
anyupdate ? 
Comment 3 Joe Orton 2008-03-31 12:59:35 EDT
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 13:10:11 EDT
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 16:12:01 EDT
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 10:25:42 EDT
it's resolved by reducing the thread values and upgraded to the latest httpd version.
Comment 7 Gomathi Raja 2008-09-04 10:26:43 EDT
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.