Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-19004

Channel's executorService's pool should have a name

      In Jenkins thread dump I can see something like this:

      pool-4-thread-18865

      "pool-4-thread-18865" Id=375223 Group=main TIMED_WAITING on java.util.concurrent.SynchronousQueue$TransferStack@1412ebc5
      at sun.misc.Unsafe.park(Native Method)

      • waiting on java.util.concurrent.SynchronousQueue$TransferStack@1412ebc5
        at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:196)
        at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:424)
        at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:323)
        at java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:874)
        at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:955)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:917)
        at java.lang.Thread.run(Thread.java:662)

      pool-4-thread-18866

      "pool-4-thread-18866" Id=375224 Group=main BLOCKED on com.thoughtworks.xstream.mapper.AnnotationMapper$WeakHashSet@41deb94c owned by "pool-4-thread-18870" Id=375228

      My guess is, that these pools are the tread pools of the executors asssociated to channels as constructred e.g. in Launcher#main

      Would be nice, if theses pools/threads would have non-generic name - i.e. names which make it obvious where the threads come form

          [JENKINS-19004] Channel's executorService's pool should have a name

          kutzi created issue -
          kutzi made changes -
          Link New: This issue is related to JENKINS-13154 [ JENKINS-13154 ]
          kutzi made changes -
          Assignee New: kutzi [ kutzi ]
          kutzi made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          kutzi made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Daniel Beck made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          Daniel Beck made changes -
          Labels Original: remoting New: 1.532.2-fixed remoting
          Daniel Beck made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 150451 ] New: JNJira + In-Review [ 193524 ]

            kutzi kutzi
            kutzi kutzi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: