Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2879

EJB Timerservice: Threads not terminated, when timer is canceled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • No Release
    • JBossAS-4.0.3 SP1
    • None
    • None

      Each time you create an ejb-timer (m_sessionContext.getTimerService().createTimer(...)), a new thread is created (Threadgroup JBoss, name "Timer-x", where x is a number).

      But these threads are never terminated. This happens at least, if the timer has a timeout of 0, even if you explicitely cancel the timer in the ejbTimeout-event (we did not test, if there is the same problem for timers with a timeout > 0).

      => each canceled timer there is a Thread with state WAITING (which requires 400k stack-space by default).

              dandread1@redhat.com Dimitrios Andreadis
              rehdie_jira Dieter Rehbein (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: