Re: [squid-users] Memory leak?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 21 Apr 2009 22:32:56 +1200

Bin Liu wrote:
> Thanks for your reply.
>
> # /usr/local/squid/sbin/squid -v
> Squid Cache: Version 2.7.STABLE6
> configure options: '--prefix=/usr/local/squid' '--with-pthreads'
> '--with-aio' '--with-dl' '--with-large-files'
> '--enable-storeio=ufs,aufs,diskd,coss,null'
> '--enable-removal-policies=lru,heap' '--enable-htcp'
> '--enable-kill-parent-hack' '--enable-snmp' '--enable-freebsd-tproxy'
> '--disable-poll' '--disable-select' '--enable-kqueue'
> '--disable-epoll' '--disable-ident-lookups' '--enable-stacktraces'
> '--enable-cache-digests' '--enable-err-languages=English'
>
>
> The squid process grows without bounds here. I've read the FAQ, and
> tried lowering cache_mem setting, decreasing cache_dir size. That
> server has 4GB physical memory, and with total cache_dir size setting
> to 60G, squid resident size still can grow beyond bound and start
> eating swap.

Note that cache_mem is not a bound on squid memry usage. Merely the RAM
cache_dir.

>
> The OS is FreeBSD 7.1-RELEASE.

Thanks.

Do you have access to any memory-tracing software (valgrind or similar?)
tracking an actual memory usage while live can be done when built
against valgrind and certain cachemgr reports. I'll have to look them up.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE14
   Current Beta Squid 3.1.0.7
Received on Tue Apr 21 2009 - 10:33:08 MDT

This archive was generated by hypermail 2.2.0 : Thu Apr 23 2009 - 12:00:01 MDT