[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Squid File descriptors



On Wed, 2005-01-05 at 10:21, Rudolf Amirjanyan wrote:
> Hello,
>  
> I am getting this errors in my Red Hat Linux release 7.3.
>  
> 2005/01/04 11:02:20| WARNING! Your cache is running out of
> filedescriptors
> 2005/01/04 11:02:37| WARNING! Your cache is running out of
> filedescriptors
>  
> My Squid version is squid-2.4.STABLE6-1.7.2.

it just means what it says. Your system is running out of
file-descriptors for squid usage.

Try this..
Hack the init script and put this B4 the invocation of Squid.

diff -Nau squid squid.new 
--- squid       2004-11-21 11:24:10.595751152 +0800
+++ squid.new   2004-11-21 11:08:19.015413352 +0800
@@ -58,6 +58,9 @@
        fi
     done
     echo -n $"Starting $prog: "
+    echo
+    echo -n $"Setting Max File Descriptors ($SQUID_MAXFD): "
+    ulimit -HSn $SQUID_MAXFD
     $SQUID $SQUID_OPTS >> /var/log/squid/squid.out 2>&1
     RETVAL=$?
     if [ $RETVAL -eq 0 ]; then 

-- 
Ow Mun Heng
Gentoo/Linux on DELL D600 1.4Ghz 
98% Microsoft(tm) Free!! 
Neuromancer 12:04:57 up 3:03, 6 users, 
load average: 0.50, 0.55, 0.36 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]