Squid 5.2 Memory Usage Continues to Increase in AlmaLinux 9.0

Asked 2 months ago, Updated 2 months ago, 3 views

I run Squid 5.2 on a system with 8GB of memory in AlmaLinux 9.0.
Currently, memory usage is increasing and eventually goes down in one day.

We disable cache, expand file descriptors, etc., but it doesn't improve.

If anyone has any knowledge of this event, please let me know.

acryokk-net src 172.16.0.0/16
aclyokk-net src 172.20.0.0/16

acl SSL_ports port 80
acl SSL_ports port443
aclSafe_ports port80#http
aclSafe_ports port21#ftp
aclSafe_ports port443#https
aclSafe_ports port70#gopher
aclSafe_ports port210#wais
acl Safe_ports port 1025-65535# unregistered ports
acl Safe_ports port 280# http-mgmt
acl Safe_ports port 488# gss-http
aclSafe_ports port591#filemaker
aclSafe_ports port777#multiling http

US>http_access deny! Safe_ports

http_access deny CONNECT!SSL_ports

http_access allow localhost manager
http_access deny manager

http_access allow localhost

http_access allow yokk-net

http_access deny all

http_port8080

cache_peer 10.255.205.100 parent 80800 proxy-only default
never_direct allow all

cache_dir ufs/var/spool/squid10016256

cache_mem 254 MB

coredump_dir/var/spool/squid

refresh_pattern^ftp —1440 20% 10080
refresh_pattern^gopher —14400% 1440
refresh_pattern-i(/cgi-bin/|\?) 0% 0
refresh_pattern.0 20% 4320

logformat timefm%{%Y/%m/%d%H:%M:%S}tl%ts,%03tu%6tr%>a%Ss/%03>Hs%<st%rm%ru%[un%Sh/%<a%mt]

access_log/var/log/squid/access.log timefm

forwarded_for on

visible hostname insvsquid

shutdown_lifetime 10 seconds

linux squid

2022-09-30 11:21

1 Answers

Thank you for the squid.conf information.It's almost the default, not SMP or rock.
Does the memory usage continue to increase even if the cache is disabled (cache deny all)?
cache_mem 254MB, so I think the total memory usage is 3 to 4 times that. I wonder why.

Regarding the old document, I think we have no choice but to analyze it using the URL below.

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

Information about cachemgr.cgi can also be found from the command line at squidclient-p 8080mgr:mem.


2022-09-30 11:21

If you have any answers or tips


© 2022 OneMinuteCode. All rights reserved.