Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-50261

Squid memory usage increases until OOM.

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-9.4
    • squid
    • None
    • Moderate
    • rhel-sst-cs-stacks
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      Squid process memory usage grows until system has no more left. Running on a 4GB and 8GB VM.  Appears to be the same issue as previous bug https://bugzilla.redhat.com/show_bug.cgi?id=2075727

      Please provide the package NVR for which bug is seen:

      How reproducible: Everytime the VM is restarted it will start to grow quickly.

      Steps to reproduce

      1. Install squid-5.5-12
      2. Startup squid and flood with connections.
      3. Squid config:
      cache_mem                     256 MB
      maximum_object_size_in_memory 512 KB
      logformat                     rsg %tl.%03tu %6tr %>a %Ss/%03>Hs %>rm %>ru %>rp %<rm %<ru %<rp
      access_log                    syslog:local0.info rsg
      workers           2
      # acl fragment for to_localnet
      acl to_localnet dst 0.0.0.1-0.255.255.255
      acl to_localnet dst 10.0.0.0/8
      acl to_localnet dst 100.64.0.0/10
      acl to_localnet dst 169.254.0.0/16
      acl to_localnet dst 172.16.0.0/12
      acl to_localnet dst 192.168.0.0/16
      acl to_localnet dst fc00::/7
      acl to_localnet dst fe80::/10
      # acl fragment for Safe_methods
      acl Safe_methods method GET
      acl Safe_methods method HEAD
      acl Safe_methods method POST
      # acl fragment for connect
      acl connect method CONNECT
      # acl fragment for Connect_ports
      acl Connect_ports port 1024-65535
      acl Connect_ports port 443
      # acl fragment for Safe_ports
      acl Safe_ports port 1024-65535
      acl Safe_ports port 80
      # acl fragment for from_localhost
      acl from_localhost src 127.0.0.1
      # disable caching
      cache deny all
      # remove x-forwarded-for headers
      forwarded_for transparent
      via off
      # http_access fragment for from_localhost
      http_access allow from_localhost
      # http_access fragment for localhost manager
      http_access allow localhost manager
      # http_access fragment for manager
      http_access deny manager
      # http_access fragment for to_localhost
      http_access deny to_localhost
      # http_access fragment for to_localnet
      http_access deny to_localnet
      # http_access fragment for connect !connect_ports
      http_access deny connect !connect_ports
      # http_access fragment for connect
      http_access allow connect
      # http_access fragment for !Safe_methods
      http_access deny !Safe_methods
      # http_access fragment for Safe_ports
      http_access allow Safe_ports
      # http_access fragment for all
      http_access deny all
      # fragment for http_port 3128
      http_port 3128  

      Expected results 

      Memory usage to hit a ceiling and not continue to consume all of the system memory.

      Actual results

              luhliari@redhat.com Lubos Uhliarik
              chimpops Joe Uhl (Inactive)
              Lubos Uhliarik Lubos Uhliarik
              rhel-cs-infra-services-qe rhel-cs-infra-services-qe rhel-cs-infra-services-qe rhel-cs-infra-services-qe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: