Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-30978

crio memory usage increases with port-forward

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • 4.16.z
    • 4.13.z, 4.12.z, 4.14.z, 4.15.z, 4.16.z
    • Node / CRI-O
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, when sending multiple failing port-forwarding requests, CRI-O memory usage increases until the node dies. With this release, the memory leakage when sending a failing port-forward request is fixed and the issue is resolved. (link:https://issues.redhat.com/browse/OCPBUGS-30978[*OCPBUGS-30978*])
      Show
      * Previously, when sending multiple failing port-forwarding requests, CRI-O memory usage increases until the node dies. With this release, the memory leakage when sending a failing port-forward request is fixed and the issue is resolved. (link: https://issues.redhat.com/browse/OCPBUGS-30978 [* OCPBUGS-30978 *])
    • Bug Fix
    • Done

      Description of problem:

      while sending multiple failing port-forwarding requests, crio memory usage increases until the node dies

      Version-Release number of selected component (if applicable):

      OCP 4.15.2
      cri-o-1.28.4-4.rhaos4.15.git92d1839.el9.x86_64

      How reproducible:

      all the time

      Steps to Reproduce:

      apiVersion: v1
      kind: Pod
      metadata:
        name: myclient
      spec:
        restartPolicy: Never
        containers:
        - name: myclient
          image: quay.io/centos/centos:stream9
          ports:
          - containerPort: 80
          args: ["bash", "-c", "sleep 12000" ]
          resources:
            requests:
              cpu: 200m
          imagePullPolicy: IfNotPresent
          readinessProbe:
            failureThreshold: 3000
            httpGet:
              path: /ready
              port: 8080
              scheme: HTTP
            initialDelaySeconds: 1
            periodSeconds: 1
            successThreshold: 1
            timeoutSeconds: 1 
          1. Create this pod
          2. while sleep 1 ; do kubectl port-forward myclient 15000:8080 & sleep 1 && curl localhost:15000/ && wait; done     
      
          

      Actual results:

      crio memory increases as long as the while loop above is running until there is no memory left

      Expected results:

      crio memory remains stable

      Additional info:

      https://issues.redhat.com/browse/OSSM-2344 might be what is causing the many port-forward in our case

          

            rh-ee-atokubi Ayato Tokubi
            frigault Francois Rigault
            Sunil Choudhary Sunil Choudhary
            Ayato Tokubi, Krzysztof Wilczyński
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: