[squid-users] Squid memory leak on ubuntu 14.04

Amos Jeffries squid3 at treenet.co.nz
Mon Nov 30 08:55:26 UTC 2015


On 30/11/2015 9:31 p.m., 风声 wrote:
> We did not enable squid cache, so I think memory is ok for our case, and we
> run squid servers (without cache, without cache cluster, just as forward
> proxy) more than 100 servers more than 1 years in AWS serveral regions with
> EC2 c3.xlarge on ubuntu 12.04. It was always running well.
> 
> Just after upgrade ubuntu 14.04, we found the memory usage increased.
> 
> Server Spec: AWS EC2 c3.xlarge (4 Cores, 7.5GB Memory, 2 x 40 GB SSD)
> 
> Before upgrade:
> 
> 12.04:
> Memory usage is always less than 50% (3.5GB), will increase or decrease
> because traffic changes
> CPU is very low, same as Disk IO, B/W (In or Out) is 500Mb/s at most, is
> around 200Mb/s most of time.
> 
> 14:04
> Memory usage is about 80-90 % (nearly 7GB), will increase , but it decrease
> very slow, and always keeping more than 50% (3.5GB),
> CPU is very low, same as Disk IO, B/W (In or Out) is 500Mb/s at most, is
> around 200Mb/s most of time.
> 
> I tested with squid-3.3.8 (ubuntu offical packages), and squid-3.5.11 on
> 12.04 and 14.04, I think it is most likely ubuntu related issue ? because
> same version, same configs, but different OS versions.

Most likely. Though a whole OS of difference has many moving parts. By
keeping Squid the same you have eliminated it specifically as the cause.
But all the libraries it uses will be different in each OS.

If there was a 32-bit to 64-bit change in the hardware or memory
allocation system you could also see this same change.

Amos



More information about the squid-users mailing list