[NTLUG:Discuss] Apache question...error message

Greg Edwards greg at nas-inet.com
Thu Nov 7 00:17:15 CST 2002


Douglas King wrote:
 >

> [Wed Nov 6 01:57:37 2002] [warn] (24)Too many open files: unable to open 
> a file descriptor above 15, you may need to increase the number of 
> descriptors



> 
> The kernel was re-compiled today thinking that was the problem...but the 
> error message keeps coming up.
> 
> Do anyone have a solution for it?
> 
> Remember...there a many virtual domains running on this web server.....
> 
> I am running:
> 
> Server version: Apache/1.3.23 (Unix)  (Red-Hat/Linux)
> Server built:   Jun 19 2002 11:55:23
> 
> on an I686 box.....

There are 2 limits on open files.  One is a system wide limit and the 
2nd is a per process limit.  The per process limit should be 20 not 15.

Well I just checked and on my Mandrake 8.2 it's 16.  Look in 
/usr/include/bits/stdio_lim.h.

Check to see if the kernel uses this include to define the max or 
another local (linux src) include file.  You should be able to change 
this to fit a larger size.  I'm surprised Apache doesn't have checks to 
deal with this issue.

-- 
Greg Edwards
New Age Software, Inc.
http://www.nas-inet.com





More information about the Discuss mailing list