Fix a Memory Leak

Description

Performance tests of the Check In/Out workflows show that in Poppy mod-pubsub has a memory leak. Details from https://folio-org.atlassian.net/browse/PERF-721#icft=PERF-721:

Longevity test was conducted for CICO on pcp1 (75 users, 8 hours). During this test mod-pubsub memory consumption increased from 37% to 63%.
Class taking most of the memory - "java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue". At the end of the test it occupies 95% of bytes. There is a big number of events like java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask inside the class. Number of these events at the beginning of the test - 83K, number at the end of the test - 840K.

 

Please see https://folio-org.atlassian.net/browse/PERF-721#icft=PERF-721 for more details.

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

2
  • 04 Dec 2023, 12:02 PM
  • 04 Dec 2023, 12:02 PM

Checklist

hide

TestRail: Results

Activity

Show:

JenkinsNotifications December 6, 2023 at 7:18 AM

Deployed to the Poppy bf env. Moved status to In bugfix review from status Awaiting deployment. Please proceed with the verification.

Roman Barannyk December 4, 2023 at 12:02 PM
Edited

The fix has been deployed on PTF environment and performed another 24 hours test and didn't see the memory going up any bit. Here is a full picture from both longevity tests:  The first one increased for 12+ hours to 60% but after that, and including the second test over the weekend, it did not rise anymore:

Roman Barannyk December 1, 2023 at 9:20 AM

waiting for deployment branch with the fix on PTF env and testing 

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Vega

Fix versions

Release

Poppy (R2 2023) Bug Fix

RCA Group

Implementation coding issue

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created November 16, 2023 at 10:29 PM
Updated March 20, 2024 at 2:32 PM
Resolved December 4, 2023 at 12:03 PM
TestRail: Cases
TestRail: Runs

Flag notifications