RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2075727 - The memory usage of the squid process keeps increasing.
Summary: The memory usage of the squid process keeps increasing.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: squid
Version: CentOS Stream
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Luboš Uhliarik
QA Contact: Branislav Náter
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-15 01:45 UTC by hariki
Modified: 2025-01-23 04:35 UTC (History)
4 users (show)

Fixed In Version: squid-5.5-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-15 10:26:24 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)
squid.conf (3.16 KB, text/plain)
2022-04-15 01:45 UTC, hariki
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-119044 0 None None None 2022-04-15 01:50:31 UTC
Red Hat Product Errata RHBA-2022:8136 0 None None None 2022-11-15 10:26:28 UTC

Description hariki 2022-04-15 01:45:15 UTC
Created attachment 1872683 [details]
squid.conf

Description of problem:
The memory usage of the squid process keeps increasing on HTTP forward proxy service.

Version-Release number of selected component (if applicable):
squid-5.2-1.el9 on CentOS Stream 9

How reproducible:
At 10 to 40 requests/second environment

Steps to Reproduce:
1. edit /etc/squid/squid.conf(attached)
2. % sudo systemctl start squid.service

Actual results:
The actual memory usage after 24 hours of operation is as follows
% free -h
               total        used        free      shared  buff/cache   available
Mem:           7.8Gi       6.9Gi       135Mi        59Mi       719Mi       543Mi
Swap:          8.0Gi       5.7Gi       2.3Gi
% ps auxw |grep ^squid
squid     221306  3.8 82.2 14533656 6685856 ?    S    Apr12  54:36 (squid-1) --kid squid-1 --foreground -f /etc/squid/squid.conf

Expected results:
Restarting squid process will restore it.
% sudo systemctl restart squid.service
% free -h
               total        used        free      shared  buff/cache   available
Mem:           7.8Gi       549Mi       6.5Gi        59Mi       709Mi       6.9Gi
% ps auxw |grep ^squid
squid     263768  2.6  0.8 185720 67360 ?        S    16:42   0:00 (squid-1) --kid squid-1 --foreground -f /etc/squid/squid.conf

Additional info:
This is similar to the thread of following site.
https://www.spinics.net/lists/squid/msg94816.html

So, we created rpm using squid-5.4.1 and updated it.
Similarly, memory usage after 24 hours of operation improved as follows
% free -h
               total        used        free      shared  buff/cache   available
Mem:           7.8Gi       1.2Gi       5.9Gi        73Mi       700Mi       6.3Gi
Swap:          8.0Gi          0B       8.0Gi
% ps auxw |grep ^squid
squid       9002  4.1  9.5 798632 773548 ?       S    Apr12  58:24 (squid-1) --kid squid-1 --foreground -f /etc/squid/squid.conf

Could you please update the base version of squid on CentOS Stream 9/ Red Hat Enterprise Linux 9 to the 5.4.1?

Comment 1 Luboš Uhliarik 2022-04-18 16:29:05 UTC
Hi Hariki,

thanks for reporting this bug. I think we will rebase squid directly to 5.5, but let's see. I will work on this ASAP.


Upstream bz: https://bugs.squid-cache.org/show_bug.cgi?id=5132
Upstream commit: https://github.com/squid-cache/squid/commit/54ad10efe146c863bdadee0d1161299ea89f5419

Comment 4 Luboš Uhliarik 2022-04-20 11:09:59 UTC
New squid 5.5 is present in Fedora Rawhide/f36 now. Let's wait few days if the update in Fedora is OK and I will update squid in c9s as well.

https://bodhi.fedoraproject.org/updates/FEDORA-2022-7cc2088335

Comment 8 Robert Hanzel 2022-06-10 08:16:49 UTC
Hi Lubos, we are experiencing this bug in RHEL9 in production env. Do you already have a build for rhel9/c9s?
Thanks

Comment 12 Branislav Náter 2022-06-13 13:24:43 UTC
(In reply to Robert Hanzel from comment #8)
> Hi Lubos, we are experiencing this bug in RHEL9 in production env. Do you
> already have a build for rhel9/c9s?
> Thanks

Hi Robert,

yes, build has been already created in koji [1] and should be available in c9s in a few days.

1. https://kojihub.stream.centos.org/koji/buildinfo?buildID=21544

Comment 13 Branislav Náter 2022-06-15 13:38:47 UTC
(In reply to Branislav Náter from comment #12)
> (In reply to Robert Hanzel from comment #8)
> > Hi Lubos, we are experiencing this bug in RHEL9 in production env. Do you
> > already have a build for rhel9/c9s?
> > Thanks
> 
> Hi Robert,
> 
> yes, build has been already created in koji [1] and should be available in
> c9s in a few days.
> 
> 1. https://kojihub.stream.centos.org/koji/buildinfo?buildID=21544

I've found new build in following c9s repo:

https://composes.stream.centos.org/production/CentOS-Stream-9-20220613.0/compose/AppStream/x86_64/os/Packages/squid-5.5-1.el9.x86_64.rpm

@robo we'll appreciate any feedback regarding new squid build. Thanks in advance.

Comment 14 Robert Hanzel 2022-06-20 07:46:12 UTC
(In reply to Branislav Náter from comment #13)
> (In reply to Branislav Náter from comment #12)
> > (In reply to Robert Hanzel from comment #8)
> > > Hi Lubos, we are experiencing this bug in RHEL9 in production env. Do you
> > > already have a build for rhel9/c9s?
> > > Thanks
> > 
> > Hi Robert,
> > 
> > yes, build has been already created in koji [1] and should be available in
> > c9s in a few days.
> > 
> > 1. https://kojihub.stream.centos.org/koji/buildinfo?buildID=21544
> 
> I've found new build in following c9s repo:
> 
> https://composes.stream.centos.org/production/CentOS-Stream-9-20220613.0/
> compose/AppStream/x86_64/os/Packages/squid-5.5-1.el9.x86_64.rpm
> 
> @robo we'll appreciate any feedback regarding new squid build. Thanks
> in advance.

Hi Brano,
after one week of testing, everything looks good. SQUID looks stable without inappropriate memory consumption.

Comment 15 Branislav Náter 2022-06-20 08:08:53 UTC
(In reply to Robert Hanzel from comment #14)
> (In reply to Branislav Náter from comment #13)
> > (In reply to Branislav Náter from comment #12)
> > > (In reply to Robert Hanzel from comment #8)
> > > > Hi Lubos, we are experiencing this bug in RHEL9 in production env. Do you
> > > > already have a build for rhel9/c9s?
> > > > Thanks
> > > 
> > > Hi Robert,
> > > 
> > > yes, build has been already created in koji [1] and should be available in
> > > c9s in a few days.
> > > 
> > > 1. https://kojihub.stream.centos.org/koji/buildinfo?buildID=21544
> > 
> > I've found new build in following c9s repo:
> > 
> > https://composes.stream.centos.org/production/CentOS-Stream-9-20220613.0/
> > compose/AppStream/x86_64/os/Packages/squid-5.5-1.el9.x86_64.rpm
> > 
> > @robo we'll appreciate any feedback regarding new squid build. Thanks
> > in advance.
> 
> Hi Brano,
> after one week of testing, everything looks good. SQUID looks stable without
> inappropriate memory consumption.

Thanks for the feedback!

Comment 17 hariki 2022-06-21 00:11:29 UTC
Thank you for the new package squid-5.5. I have confirmed that there is no problem in our environment as well. Please close this issue.

Comment 18 Branislav Náter 2022-06-21 07:59:24 UTC
(In reply to hariki from comment #17)
> Thank you for the new package squid-5.5. I have confirmed that there is no
> problem in our environment as well. Please close this issue.

Thanks for letting us know! FYI, bug will be closed on rhel-9.1 GA (when we release new package in RHEL).

Comment 20 errata-xmlrpc 2022-11-15 10:26:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (squid bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8136

Comment 21 Christian Horn 2025-01-23 04:35:54 UTC
We might see a new occurrance of this on rhel8 and 9:
https://issues.redhat.com/browse/RHEL-50261


Note You need to log in before you can comment on or make changes to this bug.