Re: [squid-users] Squid memory usage

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Tue, 28 May 2013 09:56:54 -0600

On 05/27/2013 09:59 PM, Nathan Hoad wrote:
> I'm running Squid 3.2.9, and I am seeing huge memory and CPU usage on
> busy sites. The CPU usage is expected due to the level of traffic, but
> the memory usage not so much.
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 15631 squid 25 0 2073m 2.0g 5464 R 87.4 20.3 230:11.58
> /usr/sbin/squid -N -f /etc/squid/squid.conf
>
> cache_mem is set to 1024 MB. I would not expect Squid to need an
> additional GB of memory to manage its internals.
>
> The output of the manager's mem page can be downloaded here:
>
> http://www.getoffmalawn.com/static/squidmgr.mem
>
> What can I do to reduce this memory usage? It looks like a memory leak to me.

Memory leaks increase memory usage over time. Does that happen in your
environment? If you do not know, you may want to start logging Squid
memory usage every hour or so.

Please note that the increase may come in bursts corresponding to
intervals of high usage or unusual traffic. The memory consumption may
even go down between those bursts.

Thank you,

Alex.
Received on Tue May 28 2013 - 15:57:03 MDT

This archive was generated by hypermail 2.2.0 : Wed May 29 2013 - 12:00:07 MDT