Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-5732

OffThreadEventJobRunner uses an unbounded ThreadPoolExecutor that can exhaust the DBCP

    XMLWordPrintable

Details

    Description

      OffThreadEventJobRunner#startup() calls Executors#newCachedThreadPool(ThreadFactory), which constructs a ThreadPoolExecutor with a maximumPoolSize of Integer.MAX_VALUE. Each job execution thread consumes a connection from the DBCP most of the time it’s alive, so an unbounded number of these threads that grows too large can exhaust the DBCP.

      h/t dwlizlo

      Attachments

        Issue Links

          Activity

            People

              mchandra@atlassian.com Mohil Chandra
              dazabani Delan Azabani (Inactive)
              Votes:
              17 Vote for this issue
              Watchers:
              25 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync