Re: [squid-users] Squid memory usage

From: Hugo Deprez <hugo.deprez_at_gmail.com>
Date: Fri, 3 Aug 2012 15:08:31 +0200

I will try this option.

I found a bug report which seems similar to my issue :

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=664051

but seems the only solution is to upgrade to a newer squid version... :/

On 3 August 2012 14:47, Drunkard Zhang <gongfan193_at_gmail.com> wrote:
> 2012/8/3 Hugo Deprez <hugo.deprez_at_gmail.com>:
>> Dear community,
>>
>> I am running squid3 on Linux Debian squeeze.(3.1.6).
>>
>> I encounter a suddenly a high memory usage on my virtual machine don't
>> really know why.
>> Looking at the cacti memory graph is showing a memory jump from 1.5 Gb
>> to 4GB and then ther server started to swap.
>>
>> For information the virtual machine has 4Gb of RAM.
>>
>> Here is the settings of squid.conf :
>>
>> cache_dir ufs /var/spool/squid3 100 16 256
>> cache_mem 100 MB
>>
>
> Can you try tuning these options?
> memory_pools off
> memory_pools_limit 1 MB
>
>
>> hierarchy_stoplist cgi-bin ?
>> refresh_pattern ^ftp: 1440 20% 10080
>> refresh_pattern ^gopher: 1440 0% 1440
>> refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
>> refresh_pattern . 0 20% 4320
>>
>>
>> my squid3 process is using: 81% of my RAM. So arround 3,2Gb of memory.
>>
>> proxy 25889 0.6 81.1 3937744 3299616 ? S Aug02 9:34
>> (squid) -YC -f /etc/squid3/squid.conf
>>
>> I am currently having arround 50 users using it.
>>
>>
>> I did have a look at the FAQ
>> (http://wiki.squid-cache.org/SquidFaq/SquidMemory#how-much-ram), but I
>> didn't find any tips for my situation in it.
>>
>>
>> Have you got any idea ? How can I troubleshoot this ?
>>
>> Thanks !
>
>
>
> --
> 张绍文
> gongfan193_at_gmail.com
> zhangsw_at_gwbnsh.net.cn
> 18601633785
Received on Fri Aug 03 2012 - 13:08:38 MDT

This archive was generated by hypermail 2.2.0 : Fri Aug 03 2012 - 12:00:03 MDT