[
http://jira.jboss.com/jira/browse/EJBTHREE-1330?page=comments#action_1241... ]
Galder Zamarreno commented on EJBTHREE-1330:
--------------------------------------------
A different timer service will likely required for EJB 3.1 and that
might include clustered support, so there's a slight chance existing
EJB timer service won't be changed.
Need to verify with Dimitris.
EJB timer service should use a thread pool to avoid OOM
-------------------------------------------------------
Key: EJBTHREE-1330
URL:
http://jira.jboss.com/jira/browse/EJBTHREE-1330
Project: EJB 3.0
Issue Type: Bug
Components: pool
Affects Versions: AS 4.2.2.GA, AS 5.0.0.Beta4
Reporter: Galder Zamarreno
Assigned To: Galder Zamarreno
Priority: Minor
The default EJB timer service used by the EJB3 layer is based on
org.jboss.ejb3.timerservice.jboss.JBossTimerServiceFactory which delegates
to the standard org.jboss.ejb.txtimer.EJBTimerService.
For EJB3 beans using the EJB timer service the thread local pool should not be used.
Since the current EJB timer service creates a new thread for each timer being created,
the
thread local pool will create a matching instance of the bean for that thread. Thus the
number
of active instances in total can effectively grow unchecked and thus an OOM will occur.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira