Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4663

Potential memory leak in AsyncDeliveryTask

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • eventadmin-1.3.2
    • eventadmin-1.4.4
    • Event Admin
    • None

    Description

      EventAdmin 1.3.2 can create an OutOfMemory condition caused by not delivered async events.
      The problem can occur if an interrupted thread issues an async event (e.g. log-event).
      In EventAdmin 1.3.2 the async-delivery uses DefaultThreadPool based on PooledExecutor.
      If the already interrupted thread enters the execute-method in PooledExecutor an InterruptedException is thrown before the TaskExecutor was added to the Thread-Pool.
      This Exception is catched(not handled, only logged) in the DefaultThreadPool.
      As a result the TaskExecuter was not scheduled in the ThreadPool but is still part of the m_running_threads.
      All new events are added to the pool of the TaskExecuter, adding in a increasing LinkedList. The TaskExecutor is never started again. Memory is leaking.
      Seems that 1.4.x is not vulnerable related to interrupted threads. But the same catch-and-not-handle block is used in 1.4.x.

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            hlang Hartmut Lang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: