Re: https://olb.westpac.com.au not releasing file descriptors ?

From: Bruce Campbell <bc@dont-contact.us>
Date: Sat, 7 Nov 1998 13:57:10 +1000 (EST)

On Sat, 7 Nov 1998, Mark Reynolds wrote:

> Squid version 2.0.PATCH2
> Redhat 5.1, SCSI drives, 128 meg ram.

same, but with FreeBSD (2.2.6 and 2.2.7).

> Squid doesn't seem to be releasing (or maybe even closing connection)
> file descriptors for https://olb.westpac.com.au/default.asp for at least
> a few days.

Possibly related, I've noticed some rotated log files with open fds
attached hanging around for ages:

ls -l cache.log.*
-rw-r--r-- 1 squid squid 2836 Nov 7 13:22 cache.log
-rw-r--r-- 1 squid squid 19068 Nov 6 20:58 cache.log.3
-rw-r--r-- 1 squid squid 11677 Nov 5 19:46 cache.log.9
fstat cache.log*
USER CMD PID FD MOUNT INUM MODE SZ|DV R/W NAME
squid dnsserver 10921 2 /var 23057 -rw-r--r-- 19068 rw
cache.log.3
squid dnsserver 10920 2 /var 23057 -rw-r--r-- 19068 rw
cache.log.3
squid dnsserver 10919 2 /var 23057 -rw-r--r-- 19068 rw
cache.log.3
squid dnsserver 10918 2 /var 23057 -rw-r--r-- 19068 rw
cache.log.3
squid dnsserver 10917 2 /var 23057 -rw-r--r-- 19068 rw
cache.log.3
squid dnsserver 10916 2 /var 23057 -rw-r--r-- 19068 rw
cache.log.3
squid dnsserver 10915 2 /var 23057 -rw-r--r-- 19068 rw
cache.log.3
squid dnsserver 10914 2 /var 23057 -rw-r--r-- 19068 rw
cache.log.3
squid dnsserver 10913 2 /var 23057 -rw-r--r-- 19068 rw
cache.log.3
squid dnsserver 10912 2 /var 23057 -rw-r--r-- 19068 rw
cache.log.3
squid unlinkd 6949 2 /var 23048 -rw-r--r-- 11677 rw
cache.log.9
squid squid 6912 3 /var 23058 -rw-r--r-- 2836 rw
cache.log
squid squid 6912 6 /var 23060 -rw-r--r-- 2507293 w
store.log
squid squid 6912 7 /var 23061 -rw-r--r-- 12696057 w
access.log

(My script to check for squid running, rotate the logs files and summarise
them won't touch a file that still has a squid-owned process attached to
it, hence some files hang around while others are removed.)

--==--
Bruce.

Sysadmin, TheHub.
Received on Fri Nov 06 1998 - 20:46:35 MST

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