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:
See below, <IfModule worker.c> ServerLimit 900 StartServers 5 MaxClients 8192 MinSpareThreads 75 MaxSpareThreads 250 ThreadsPerChild 64 MaxRequestsPerChild 10000
anyupdate ?
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.
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.
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.
it's resolved by reducing the thread values and upgraded to the latest httpd version.