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

Memory leak in async delivery

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • eventadmin-1.4.2, eventadmin-1.4.4
    • eventadmin-1.4.6
    • None
    • None

    Description

      From debugging through the code, it seems that entries get added to the org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks#m_running_threads (java.util.concurrent.ConcurrentHashMap) but not removed.

      In org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks.TaskExecuter#run() the call to remove is trying to remove the "object" rather than the key. This does not remove anything from the map.

        public void run()
              {
                ...
                              this.m_running_threads.remove(this);
                 ...
                  } while ( running );
              }
      

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            gnodet Guillaume Nodet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: