[squid-users] memory leaks on squid-2.4

From: Florin Andrei <florin@dont-contact.us>
Date: 22 May 2001 10:41:34 -0700

I'm using several sub-versions of squid-2.4 (pre-stable and stable1,
with several patches) on a proxy that gets 100 requests / second during
the morning and noon. The OS is Irix-6.5

It looks like squid-2.4 have some memory leaks. Please take a look at
this image (also attached to this message):

http://www.geocities.com/elf_too/mem-day.png

(it's the size of the squid process, as reported by cachemgr.cgi; the
"k" after the number is misleading, because it's actually MB)

The combined sizes of the disk caches is 17 GB, so the initial size of
the process, 220 MB, is ok. (it's like the old rule: "approx. 8..12 MB
of memory for each GB of disk cache")

But, see, as soon as Squid starts to get those 100 req / sec (around 7
o'clock in the morning), the size of the process grows too much. In
fact, in a couple of days, it will go to 1.8 GB, then it will crash.

Another odd thing: when Squid is really big, cachemgr.cgi does not
report the correct process size: cachemgr.cgi says 1 GB, while top and
ps say 1.8 GB.

A friend of mine, using squid-2.4 on Linux, saw the same behaviour:
squid-2.4 grows too much, then it crashes.

-- 
Florin Andrei
"All operating systems suck.
Linux just sucks less" - an MIT guy

mem-day.png
Received on Tue May 22 2001 - 11:41:45 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:14 MST