• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 9.1.0, 9.0.2
    • 9.0.0, 8.2.4, 9.0.1
    • Agents, Docker
    • None

      Problem

      The Bamboo Agent and Bamboo Docker Agent bamboo-agent-base uses 100% CPU

      The issue is due to a bug on Tanuki Service Wrapper 3.5.48 fixed on 3.5.49:

      • https://wrapper.tanukisoftware.com/doc/english/release-notes.html#3.5.49

        Version 3.5.49: Changes and bug fixes (2022-02-09)

        Fix high CPU usage observed on certain Unix platforms when running as a console application. The Windows platform, as well as daemon installations on Unix are not affected. Since 3.5.47. Applications using version 3.5.48 that do not need to handle stdin may circumvent the issue by adding wrapper.disable_console_input=TRUE to their configuration file. This workaround is not recommended for 3.5.47 because of another issue (see below).

      Environment

      • Bamboo Agent (regular and Docker)
      • Embedded Tanuki Service Wrapper 3.5.48

      Steps to Reproduce

      1. Start the Remote Agent (9.0, 8.2.4) - Docker or regular
      2. Monitor the CPU and observe the wrapper process consuming 100% of it

      Expected Results

      The Bamboo docker agent should run normally and not consume all the CPU

      Actual Results

      wrapper process consumes 100% CPU

      Workaround

      On Docker Agent:

      The following instructions will work on a fresh container where the wrapper.conf file doesn't exist. If you are using a docker volume or bind mount and want to fix an existing container, please modify the /var/atlassian/application-data/bamboo-agent/conf/wrapper.conf file manually as the container initialisation will not overwrite an already existing wrapper.conf

      1. Copy the original /opt/atlassian/etc/wrapper.conf.j2 file from the container to the host computer
      2. Append wrapper.disable_console_input=TRUE to the end of the file
      3. Either copy or mount the modified wrapper.conf.j2 to the container on /opt/atlassian/etc/
      4. Start the container
      5. Alternatively, add the property to your own version of the container

      On a regular Agent:

      1. Append wrapper.disable_console_input=TRUE to the end of the <bamboo-agent-home>/conf/wrapper.conf file
      2. Restart the Agent

      Notes

            [BAM-22006] Bamboo Agent uses 100% CPU

            Hi,

            This is also affecting Bamboo version 8.2.4

            Robhit Saxena added a comment - Hi, This is also affecting Bamboo version 8.2.4

              72548a1cec6d Wioletta Dys
              73868399605e Eduardo Alvarenga (Inactive)
              Affected customers:
              2 This affects my team
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: