JBoss EAP 6 OutOfMemory caused by millions of FutureTask instances related to the EJB TimerService
Issue
- We have a JBoss EAP 6.0.1 instance which crashes after a while with an OutOfMemory error, the heapdump shows that we have about 15 million instances of FutureTask, LinkedBlockingQueue$Node etc. related to org.jboss.as.ejb3.timerservice.task.TimerTask We have round about 10-20 ejb timer which schedule some tasks every minute, but they will not generate million of events in a few hours ? Some timers are fired every millisecond. This is a migrated application from JBoss 5 where it worked fine.
Environment
Red Hat JBoss Enterprise Application Platform (EAP) 6.0.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.