tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Brunnauer (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENEJB-1119) OutOfMemoryError when creating many one time timers in timed session ejb
Date Wed, 16 Dec 2009 08:20:18 GMT
OutOfMemoryError when creating many one time timers in timed session ejb
------------------------------------------------------------------------

                 Key: OPENEJB-1119
                 URL: https://issues.apache.org/jira/browse/OPENEJB-1119
             Project: OpenEJB
          Issue Type: Bug
    Affects Versions: 3.0.1
         Environment: x86, Windows XP SP3 32bit, WASCE 2.1.1.2, IBM SDK 60 32bit bundled with
WASCE
            Reporter: Stefan Brunnauer
            Priority: Minor


Example: Create a timed session bean with a one time (single-action) timer - in a finally
block of the ejbTimeout method recreate timer with same info serializable and interval. So
this construct represents my scheduled interval job for doing some task again and again. 

When calling the sessioncontext.getTimerService().getTimers().size() always 1 is returned.


My profiler tells me, with every sessioncontext.getTimerService().createTimer(interval, info)
method call, some OpenEJB objects like:

org.apache.openejb.core.timer.TimerData
org.apache.openejb.core.timer.TimerData$TimerDataSynchronization
org.apache.openejb.core.timer.TimerImpl
org.apache.geronimo.transaction.manager.XidImpl

and some more (about 20 classes) are created and never removed.

This finally leads to an OutOfMemoryError. 
When defining ejbTimeout method TX NotSupported than I couldn't reproduce this issue.

Hope this helps, greetings

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message