Memory Leak after Agent Upgrade from 20.9 to 24.2.1.7
search cancel

Memory Leak after Agent Upgrade from 20.9 to 24.2.1.7

book

Article ID: 374189

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope)

Issue/Introduction

Mobile Banking application in Production experienced memory problems after an agent upgrade. There were no changes in the application itself. A memory leak is present that is visible in the usage of the PS Old Gen memory pool. As soon as that memory region is close to full, the GC times increased dramatically in an attempt to free up memory. It looks like there is a issue with the "Agent Heartbeat" from Introscope. 

Cause

Not seeing any obvious evidence indicating this is related to the APM Agent. 

Resolution

The heap dump shows a heap of 1.5GB, with 77% occupied by a net.logstash.logback.util.ThreadLocalHolder, which holds an array containing 73k entries, each holding a weak reference to a thread. 

85k threads in the heap dump, mostly already dead with name like "default task - nnn".

The problem does not seems to be caused by Introscope.

The following suggestions may help narrow down this issue:

  • Check if it is expected to have this many threads in the Application.
  • Analyze heap dumps with introscope enabled and without introscop enabled, 
  • Review how long it takes to build up memory leak issue with and without APM agent.

Additional Information