Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20259

Bamboo PlanExec default size could benefit from an increase

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • 9.1.0
    • Performance
    • None
    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Problem Definition

      Bamboo PlanExec thread pool is defaulted to 4. It has a max size of 8 but it never scales since it has a very large queue size and is linked to a dedupe queue. The thread pool is responsible for executing change detection operations and other parts of the build execution lifecycle.

      4 threads has proven to be insufficient for large instances with a lot of change detection and non-optimal network conditions.

      Suggested Solution

      Slight increase to the initial size. E.g. 5, 6 or 8.

      Utopian solution:
      Scalable thread pool sizes based on load factors and queue drain rate.

      Workaround

      Higher than 8 is not recommended, please monitor Disk IO and CPU increases on the Bamboo Server after increasing this.

      1. Linux: Edit your <bamboo-install>/bin/setenv.sh
      2. Add the following -Dbamboo.plan.exe.threads=8 to your JVM_SUPPORT_RECOMMENDED_ARGS. E.g.
        #
        #  Occasionally Atlassian Support may recommend that you set some specific JVM arguments.  You can use this variable below to do that.
        #
        : ${JVM_SUPPORT_RECOMMENDED_ARGS:="-Dbamboo.plan.exe.threads=8"}
        
      3. Restart Bamboo

            851f15845f55 Mateusz Szmal
            jowen@atlassian.com Jeremy Owen
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: