[squid-users] 3.5.20 run out of my memory.

Amos Jeffries squid3 at treenet.co.nz
Fri Feb 9 07:34:45 UTC 2018


On 09/02/18 14:12, minh hưng đỗ hoàng wrote:
> Thanks alot for your help,
> 
>     > https_port 3130 tproxy ssl-bump generate-host-certificates=on
>     > dynamic_cert_mem_cache_size=4MB
>     > cert=/etc/squid/ssl/e1f19c0494badc8dc14e8c4c56a8b97a.dyn
> 
>     Please add sslflags=NO_DEFAULT_CA to the above config line. That should
>     reduce the memory usage a lot.
> 
>  
> I have tried this command, but my squid still used alot of my memory for
> cache .
> 
> KiB Mem:   4037016 total,  3729152 used,   307864 free,   120508 buffers
> KiB Swap:  8511484 total,        0 used,  8511484 free.  2213580 cached Mem
> 
> Squid only use about 1.2Gb dram to run, but use alot of memory for
> cached ( 2213580 cached Mem )
> What was cached by my squid with my squid.conf ? Can i reduce or set
> life-time for this cache ?
> 

"cached Mem" is not Squid memory. It is Operating System memory and
nothing to worry about so long as the used and free values are reasonable.

You have "0 used" in Swap, and lots of "free" in main memory. Those are
the most important things.

These pages may be of help understanding what all the numbers mean:

<https://www.networkworld.com/article/2722141/it-management/making-sense-of-memory-usage-on-linux.html>

<https://wiki.squid-cache.org/SquidFaq/SquidMemory>

Amos


More information about the squid-users mailing list