EAP SimpleCache is filling with StatefulSessionComponentInstances after updating to EAP 7.4.0+

Solution Unverified - Updated

Environment

  • JBoss Enterprise Application Platform (EAP) 7.4.0+

Issue

  • After updating to EAP 7.4.0+, we are seeing gradual heap use accumulation till OOME in many org.jboss.as.ejb3.component.stateful.StatefulSessionComponentInstances accumulated in a org.jboss.as.ejb3.cache.simple.SimpleCache

Resolution

  • Await a fix in future EAP updates

Root Cause

Diagnostic Steps

  • From a heap dump, check the following OQL values in a heap dump. If there are large growing differences between these values with fewer scheduler entries, then this indicates growing amounts of cache entries leaked in this manner without a scheduled expiration:
SELECT entries.baseCount, scheduler.entries.tokens.baseCount FROM org.jboss.as.ejb3.cache.simple.SimpleCache 
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.