On 28/05/2013 3:59 p.m., 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.
I take it you are referring to the 2.0g resident size?
> 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.
1GB is within the reasonable use limit for a fully loaded Squid under
peak traffic. The resident size reported is usually the biggest "ever"
size of memory usage by the process.
FWIW: The memory report shows about 324MB being tracked by Squid as
currently in use for other things than cache_mem with 550 active clients
doing 117 transactions at present. The client transaction related pools
show that the current values are 1/3 of peak traffic, so 3x 360MB ==>
~1GB under peak traffic appears entirely possible for your Squid.
HTH
Amos
Received on Tue May 28 2013 - 05:23:41 MDT
This archive was generated by hypermail 2.2.0 : Tue May 28 2013 - 12:00:07 MDT