Re: Cannont increase file descriptors

From: Jason Wang <Jason.Wang@dont-contact.us>
Date: Fri, 21 Jul 2000 13:50:49 -0500

Squid still comes up saying "With 1024 file descriptors available". I've
even tried increasing the rlim_fd_cur to 4096 to no avail. Thanks for
trying though.

Jason

Suresh.Khatry@unon.org wrote:
>
> Hi,
>
> I think you need to set the ulimit for the squid process. My squid
> starup script is as follows:
>
> #!/bin/sh
> #
> ulimit -n 4096
>
> case "$1" in
> 'start')
> if [ -f /local/squid/bin/squid ] ; then
> echo "Squid Deamon starting...."
> /local/squid/bin/squid &
> fi
> ;;
> 'stop')
> /local/squid/bin/squid -k shutdown
> ;;
> *)
> echo "Usage: $0 { start | stop }"
> ;;
> esac
> exit 0
>
> Hope this helps ...
>
> Ciao
> SK
>
> +------------------------------------------------------------+
> | Suresh Khatry (Mr.) <mailto:Suresh.Khatry@unon.org>
> | Chief, Network Services Unit <mailto:Postmaster@unep.org>
> | Information Technology Services <ICQ:44617574>
> | United Nations Office at Nairobi (UNON) <NIC Handle: SK465>
> | P.O. Box 47074, Nairobi, Kenya <RIPE Handle: SK136-RIPE>
> | Phone: +254 (2) 621234, [Direct: +254 (2) 623427]
> | Fax: +254 (2) 226890, [Direct: +254 (2) 624297]
> | Cell: +254 (72) 521095
> | WWW => http://www.unep.org
> +------------------------------------------------------------+
> K E E P I N G Y O U I N T O U C H W I T H T H E W O R L D
>
> Via Notes
>
>
> Jason Wang
> <Jason.Wang@usa.al To: squid-users@ircache.net
> catel.com> cc:
> Sent by: "Jason Subject: Cannont increase file descriptors
> Wang"
> <Jason.Wang@usa.al
> catel.com>
>
>
> 21/07/00 19:10
>
>
>
> I am running Squid 2.3_STABLE2 on Solaris 7. I am trying to increase the
> number of file descriptors, and have thus far been unsuccessful. This is
> what I've tried so far.
>
> ./configure --prefix=/usr/local/squid --enable-poll
>
> Modified /etc/system:
> set rlim_fd_max=4096
> set rlim_fd_cur=1024
> Modified the include/autoconf.h file:
> #define DEFAULT_FD_SETSIZE 4096
> #define SQUID_MAXFD 4096
>
> When squid starts up, it reports:
> 2000/07/21 09:34:59| Process ID 907
> 2000/07/21 09:34:59| With 1024 file descriptors available
>
> Any suggestions? Thanks in advance.
>
> Jason
Received on Fri Jul 21 2000 - 11:51:52 MDT

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