Metaspace OutOfMemory after upgrade to 10.5

book

Article ID: 192869

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) CA Application Performance Management (APM / Wily / Introscope) INTROSCOPE DX Application Performance Management

Issue/Introduction

After the migration from Introscope agent 10.1 to 10.5 there is outofmemory in metaspace (no other changes made to jdk version or application as well) , after increasing of maxmetaspace the problem persists.

Increased MaxMetaSpaceSize from 256m to 512m, but doesn't help: we have metaspace explosion almost daily.




Cause

Heap dumps noted excessive heap use from

com.wily.introscope.agent.intelligent.detection.rules.SkipMethodIfAlreadyInstrumentedRule

The AutoPersist.pbd had a large number of entries although no duplicates could be found

Environment

Release : 10.5

Component : APM Agents

Resolution

In this situation, the suggestion was to disable intelligent instrumentation by setting these properties.

introscope.agent.deep.instrumentation.enabled=false
introscope.agent.deep.entrypoint.enabled=false
introscope.agent.automatic.backend.detection.enabled=false

The AutoPersist.pbd was also removed but could be used as a source of potential configuration for a custom pbd