Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-187

JobContextImpl leaks class loaders if JobListeners are defined

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 1.2.0.Final
    • None
    • None
    • None

      If JobListener's are defined for the org.jberet.runtime.context.JobContextImpl doesn't release the org.jberet.creation.ArtifactCreationContext thread local context.

      +--------------------------------------------------------------+------------+-----------------+--------------+
      |                             Name                             |  Objects   |  Retained Size  |  Dominators  |
      +--------------------------------------------------------------+------------+-----------------+--------------+
      |  +---<All the objects>                                       |  3  100 %  |      72  100 %  |              |
      |    |                                                         |            |                 |              |
      |    +---javax.batch.api.listener.JobListener[]                |  3  100 %  |      72  100 %  |           3  |
      |      |                                                       |            |                 |              |
      |      +---org.jberet.runtime.context.JobContextImpl           |  3  100 %  |      72  100 %  |           3  |
      |        |                                                     |            |                 |              |
      |        +---org.jberet.creation.ArtifactCreationContext       |  3  100 %  |      72  100 %  |           3  |
      |          |                                                   |            |                 |              |
      |          +---java.lang.ThreadLocal$ThreadLocalMap$Entry      |  3  100 %  |      72  100 %  |           3  |
      |            |                                                 |            |                 |              |
      |            +---java.lang.ThreadLocal$ThreadLocalMap$Entry[]  |  3  100 %  |      72  100 %  |           3  |
      |              |                                               |            |                 |              |
      |              +---java.lang.ThreadLocal$ThreadLocalMap        |  3  100 %  |      72  100 %  |           3  |
      |                |                                             |            |                 |              |
      |                +---java.lang.Thread                          |  3  100 %  |      72  100 %  |           3  |
      +--------------------------------------------------------------+------------+-----------------+--------------+
      

              cfang@redhat.com Cheng Fang
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: