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

PagerDuty plugin thread leak


    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pagerduty-plugin
    • None

      When using the PagerDuty plugin within a pipeline with granularity set to 1 minute. We notice that the plugin will create threads in waiting state to the point of thread exhaustion.

      The majority of threads created had the following stacktrace

      Thread-308 - priority:5 - threadId:0x00007fdd8412b000 - nativeId:0x9f6 - state:TIMED_WAITING stackTrace: java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) at com.mashape.unirest.http.utils.SyncIdleConnectionMonitorThread.run(SyncIdleConnectionMonitorThread.java:22) - locked <0x00000003df659280> (a com.mashape.unirest.http.utils.SyncIdleConnectionMonitorThread)

       This maybe related to https://github.com/Kong/unirest-java/issues/148

      Thread counts with without plugin enabled

            alexanderlz Alexander Leibzon
            daxroc Damien Roche
            2 Vote for this issue
            7 Start watching this issue