Introscope out of memory error - com.wily.introscope.agent.trace.intelligent.HighPerformanceIntelligenceStackElement

Document ID : KB000124106
Last Modified Date : 04/01/2019
Show Technical Document Details
Issue:
An out of memory situation has been determined in a Java application monitored using Introscope.
After analysis, it was noticed that 630 instances com.wily.introscope.agent.trace.intelligent.HighPerformanceIntelligenceStackElement$HighPerformanceIntelligenceStackElementVirtualStack occupied 274,679,688 (70.92%) bytes.
These instances have been loaded by the system classloader.
Environment:
Affects 10.5.x and 10.7.x Java Agents, was reported in both WebSphere and Tomcat, but can affect any type of Java container
Cause:
This is a memory leak introduced by the automatic cross-process transaction tracing feature, due to excessive caching of objects

As a workaround, this feature can be turned off by setting this property:

introscope.agent.deep.automatic.trace.crossprocess.enabled=false
Resolution:
A fix has been introduced for this in APM 10.7 hotfix 23, available on request from support, reference DE391438
Additional Information:
If the workaround property does not help, you can completely turn off the Smart Instrumentation feature to control the memory usage:
 
introscope.agent.deep.instrumentation.enabled=false

and raise a support case, providing at least one heap dump demonstrating the problem behaviour, as well as agent logs and AutoProbe logs.