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

Channel's executorService's pool should have a name

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Christoph Kutzinski
            Path:
            src/main/java/hudson/remoting/Request.java
            http://jenkins-ci.org/commit/remoting/d43ea72d64af285de2cfaeadae4b5420fbe36b71
            Log:
            Merge pull request #17 from kutzi/JENKINS-19004-channel-executor-name

            JENKINS-19004 set name for remoting threads

            Compare: https://github.com/jenkinsci/remoting/compare/91f09c22bac8...d43ea72d64af

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: src/main/java/hudson/remoting/Request.java http://jenkins-ci.org/commit/remoting/d43ea72d64af285de2cfaeadae4b5420fbe36b71 Log: Merge pull request #17 from kutzi/ JENKINS-19004 -channel-executor-name JENKINS-19004 set name for remoting threads Compare: https://github.com/jenkinsci/remoting/compare/91f09c22bac8...d43ea72d64af
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #2819
            JENKINS-19004 set name of remoting threads (Revision de6bb5c500c0c60d876564608051248c19a558d7)

            Result = SUCCESS
            Christoph Kutzinski : de6bb5c500c0c60d876564608051248c19a558d7
            Files :

            • core/src/main/java/hudson/model/Computer.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2819 JENKINS-19004 set name of remoting threads (Revision de6bb5c500c0c60d876564608051248c19a558d7) Result = SUCCESS Christoph Kutzinski : de6bb5c500c0c60d876564608051248c19a558d7 Files : core/src/main/java/hudson/model/Computer.java
            Show
            jglick Jesse Glick added a comment - Remoting fix integrated in: https://github.com/jenkinsci/jenkins/commit/4137c46182a0652d2eed2897a1e797bdc3f8c7f9
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Oliver Gondža
            Path:
            http://jenkins-ci.org/commit/jenkins/5cf3e28c4885a86a4dad3463952e1aae34932f9c
            Log:
            [FIXED JENKINS-20093 JENKINS-19453 JENKINS-19004 JENKINS-8856] Noting retroactively

            Backported as 23424ea7dbced486963a73d6bf56e8367ab779dd

            Compare: https://github.com/jenkinsci/jenkins/compare/7d602d52b445...5cf3e28c4885

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: http://jenkins-ci.org/commit/jenkins/5cf3e28c4885a86a4dad3463952e1aae34932f9c Log: [FIXED JENKINS-20093 JENKINS-19453 JENKINS-19004 JENKINS-8856] Noting retroactively Backported as 23424ea7dbced486963a73d6bf56e8367ab779dd Compare: https://github.com/jenkinsci/jenkins/compare/7d602d52b445...5cf3e28c4885
            Hide
            danielbeck Daniel Beck added a comment -

            Reopening temporarily to note inclusion in LTS.

            Show
            danielbeck Daniel Beck added a comment - Reopening temporarily to note inclusion in LTS.

              People

              • Assignee:
                kutzi kutzi
                Reporter:
                kutzi kutzi
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: