EJB backing caches are generating large retention from cancelled tasks
Environment
- JBoss Enterprise Application Platform (EAP) 6
Issue
- There are many cancelled tasks in our heap which trace back to the EJB NonPassivatingBackingCache or PassivatingBackingCache
Resolution
- Await improvements in a later release
Root Cause
- ScheduledThreadPoolExecutor$DelayedWorkQueue are filling with cancelled FutureTasks
- Content from issues.jboss.org is not included.WFLY-2534
- This content is not included.BZ-1031199
- JBoss cancels and recreates Remove or Passivation Tasks with each ejb call. So due to the java ScheduledThreadPoolExecutor's lazy cancelled task removal, this scheduled task cancellation and recreation model can potentially churn up quite a number of cancelled tasks sitting in the executor's DelayedWorkQueue.
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.