Re: File descriptors on Linux - max limit?

From: Darren Steven <dsteven@dont-contact.us>
Date: Wed, 02 Feb 2000 11:06:48 +1100

visolve cache wrote:

> Hi,
>
> --- "Miguel A.L. Paraz" <map@iphil.net> wrote:
> > I've run out of file
> > descriptors and want to
> > increase them beyond 1024, perhaps 4096, under Linux
> > 2.2.12, Red Hat 6.1.
> >
> > I increased NR_OPEN and OPEN_MAX in
> > /usr/include/linux/limits.h, and
> > set /proc/sys/fs/file-max as well. However,
> > "configure" still sees 1024
> > FD's.
>
> Try doing this.
>
> * In types.h, give
> #define _FD_SETSIZE 4096
> It will be in /usr/include/bits/ directory or
> /usr/include/gnu/ directory.
>
> * ulimit-n 4096
>
> Reconfigure, Remake, Recompile and Reinstall the squid.

and make sure you have ulimit -n 4096 in the squid startup script

>
>
> =====
> regards
> visolve_cache
> visolve.com
> http://www.v-solve.com
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com

--
Darren Steven
Applications Specialist
Networking Tasmania
Telstra Australia
Ph.1800 813 302
Received on Tue Feb 01 2000 - 23:08:36 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:50:53 MST