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

High CPU usage generated by constant Bitbucket pull requests

    XMLWordPrintable

Details

    Description

      Summary

      Plans are receiving Bitbucket pull requests, generating high CPU usage

      Environment

      Behaviour found in Bamboo 6 and Bitbucket 5.0.

      Steps to Reproduce

      1. Create Application Link with Bitbucket server.
      2. Problem starts as soon as Bamboo is started. 

      Expected Results

      Normal behaviour.

      Actual Results

      Pull requests every ~100ms, even when no triggers are configured:

      Log entries:

      2017-05-17 10:29:55,799 DEBUG [6-PullRequestDetectionBackgroundThread:pool-12-thread-1] [BitbucketServerPullRequestDetector] Fetched 0 open PRs from Plan1
      2017-05-17 10:29:55,799 DEBUG [6-PullRequestDetectionBackgroundThread:pool-12-thread-1] [BitbucketServerPullRequestDetector] Fetched 0 open PRs from Plan1
      2017-05-17 10:29:55,799 DEBUG [6-PullRequestDetectionBackgroundThread:pool-12-thread-1] [BitbucketServerPullRequestDetector] Fetched 0 open PRs from Plan1
      2017-05-17 10:29:55,799 DEBUG [6-PullRequestDetectionBackgroundThread:pool-12-thread-1] [BitbucketServerPullRequestDetector] Fetched 0 open PRs from Plan1
      2017-05-17 10:29:55,799 DEBUG [BitbucketServerPullRequestDetector] Fetched 0 open PRs from Plan2
      2017-05-17 10:29:55,799 DEBUG [6-PullRequestDetectionBackgroundThread:pool-12-thread-1] [BitbucketServerPullRequestDetector] Fetched 0 open PRs from Plan1
      2017-05-17 10:29:55,800 DEBUG [6-PullRequestDetectionBackgroundThread:pool-12-thread-1] [BitbucketServerPullRequestDetector] Fetched 0 open PRs from Plan1
      2017-05-17 10:29:55,800 DEBUG [6-PullRequestDetectionBackgroundThread:pool-12-thread-1] [BitbucketServerPullRequestDetector] Fetched 0 open PRs from Plan1
      2017-05-17 10:29:55,800 DEBUG [6-PullRequestDetectionBackgroundThread:pool-12-thread-3] [BitbucketServerPullRequestDetector] Fetched 0 open PRs from Plan2
      2017-05-17 10:29:55,800 DEBUG [6-PullRequestDetectionBackgroundThread:pool-12-thread-3] [BitbucketServerPullRequestDetector] Fetched 0 open PRs from Plan2
      2017-05-17 10:29:55,800 DEBUG [6-PullRequestDetectionBackgroundThread:pool-12-thread-3] [BitbucketServerPullRequestDetector] Fetched 0 open PRs from Plan2
      2017-05-17 10:29:55,800 DEBUG [6-PullRequestDetectionBackgroundThread:pool-12-thread-3] [BitbucketServerPullRequestDetector] Fetched 0 open PRs from Plan2
      2017-05-17 10:29:55,800 DEBUG [6-PullRequestDetectionBackgroundThread:pool-12-thread-3] [BitbucketServerPullRequestDetector] Fetched 0 open PRs from Plan2
      2017-05-17 10:29:55,800 DEBUG [6-PullRequestDetectionBackgroundThread:pool-12-thread-3] [BitbucketServerPullRequestDetector] Fetched 0 open PRs from Plan2
      

      Notes

      Workaround

      Option #1. Disable branch detection altogether

      1. Start Bamboo with atlassian.bamboo.branch.detection.disable system property set to true.

      Option #2. This problem can be controlled by changing the branch detection interval:

      1. Overview -> Settings -> General configuration: Field "Branch detection interval".
      2. The default value is 300s. Try increasing it gradually (say 100s) until the problem is controlled.

      Attachments

        Issue Links

          Activity

            People

              kbrazulewicz Krystian Brazulewicz
              pdemitrio Patricio
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: