[squid-users] RE: Memory leak in 3.2.5

From: carteriii <web_s_at_tcarter.com>
Date: Wed, 26 Dec 2012 07:52:11 -0800 (PST)

I came back to these discussions because I have 3.2.3 and see some excessive
memory usage and found this discussion. I don't know enough to know if my
situation is the same, but it feels like a memory leak and seems relevant to
this discussion. From the cachemgr.cgi "info" page, I found the "space in
area" vs. "total in use" numbers particularly confusing:

Memory usage for squid via mallinfo():
        Total space in arena: 1360760 KB
        Ordinary blocks: 1360469 KB 25 blks
        Small blocks: 0 KB 0 blks
        Holding blocks: 25360 KB 6 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 291 KB
        Total in use: 291 KB 0%
        Total free: 291 KB 0%
        Total size: 1386120 KB
Memory accounted for:
        Total accounted: 1305182 KB 94%
        memPool accounted: 1305182 KB 94%
        memPool unaccounted: 80938 KB 6%
        memPoolAlloc calls: 7170387
        memPoolFree calls: 7170578

If I'm not mistaken, this says squid is consuming over 1GB of memory but
only 291 KB are being used. memPool says that 94% is "accounted", so
wouldn't that imply this is not a memory leak? Or is it a memory leak and
squid knows about it? Am I reading this correctly? This is from a system
with light usage that has only been running about a day. Prior to getting
those statistics, I did set these two options in my configuration file to
try to keep the usage down, but it didn't seem to help:

cache_mem 128 MB
maximum_object_size_in_memory 128 KB

The "mem" report shows me the following top-4 lines

       Pool Allocated
In Use
                                                 (#) (KB)
(#) (KB)
32K Buffer 20955 670560 20955
670560
16K Buffer 21380 342080 21378
342048
8K Buffer 11547 92376 11546
92368
Short Strings 1851173 65081 1851173
65081

What are the generic 32/16/8K buffers and what is the next thing I can
investigate to figure it out? I'm in way over my head and not sure where to
go next.

--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Memory-leak-in-3-2-5-tp4657759p4657797.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Wed Dec 26 2012 - 15:52:14 MST

This archive was generated by hypermail 2.2.0 : Thu Dec 27 2012 - 12:00:05 MST