Uploaded image for project: 'edge-rtac'
  1. edge-rtac
  2. EDGRTAC-33

Memory leak of ~200mb for /rtac?instanceIds=id1,id2,idn API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: P2
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.1.1
    • Labels:
      None
    • Template:
    • Sprint:
      Core: F - Sprint 101
    • Story Points:
      5
    • Development Team:
      Prokopovych
    • Release:
      Q3 2020 Bug Fix

      Description

      Overview:
      For 1 user, get all holdings for a list of instances where holdings > 300
      Steps to Reproduce:

      curl --request 'GET https://edge-pre-honeysuckle-cap1.int.aws.folio.org/rtac?instanceIds=121063ba-43cc-48f4-a49f-aaf5488127e0,6e2c9f33-a0f7-49dc-bcde-d028765f381d,71399944-9f83-4187-a018-b68d7cfb0d6f,95c2a34c-179c-4e28-9f38-170fd114353e,af9352d2-b396-4271-930c-4724a599eca6,cf769cad-35f6-44cb-8bc6-c5d6c956647e,ef2b0ee0-b9ea-430f-89c4-82e6a879de67,
      6e2c9f33-a0f7-49dc-bcde-d028765f381d,aa80aa1e-3d50-4aea-af02-360fd0508e31,2a898a14-ea27-40a6-b08f-463a1c924707&apikey=eyJzIjoiVW80VVRmNGVuYyIsInQiOiJmczA5MDAwMDAwIiwidSI6ImZzMDkwMDAwMDAifQ==&fullPeriodicals=true'
      
      1. Log into some FOLIO environment as User X
        Used pre-honeysuckle env from PTF.
        Edge API URL: edge-pre-honeysuckle-cap1.int.aws.folio.org

      Expected Results:
      There should not be any memory leaks
      Actual Results:
      Memory consumption increases by ~40% but it is never reclaimed by heap

      Additional Information:
      From the heap dump, Leak suspect report shows that HttpClientImpl is the problem. Please see attached leak suspect report, service memory utilization graph below.
      Link to Heap dump - https://wiki.folio.org/pages/viewpage.action?pageId=47841533#PTFRTACWorkflowTestReport(preHoneysuckle)-HeapDump

      Interested parties:
      All consumers of edge-rtac

        TestRail: Results

          Attachments

          1. edge-rtac.png
            edge-rtac.png
            86 kB
          2. edge-rtac-memory.png
            edge-rtac-memory.png
            85 kB
          3. edge-rtac-memory-leak.png
            edge-rtac-memory-leak.png
            304 kB
          4. edge-rtac-service-memory-utilization.png
            edge-rtac-service-memory-utilization.png
            259 kB
          5. leakSuspectReport.png
            leakSuspectReport.png
            380 kB
          6. Leak Suspects.pdf
            113 kB
          7. mod-rtac.png
            mod-rtac.png
            74 kB
          8. mod-rtac-memory.png
            mod-rtac-memory.png
            96 kB

            Issue Links

              Activity

                People

                Assignee:
                varunjavalkar Varun Javalkar
                Reporter:
                varunjavalkar Varun Javalkar
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases