• 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

            Eduardo Alvarenga (Inactive) made changes -
            Description Original: h3. Problem

            The Bamboo 9 Docker [bamboo-agent-base|https://hub.docker.com/r/atlassian/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]
            {quote}
            h4. 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)._
            {quote}

            h3. Environment
             * Bamboo 9 docker agent
             * Embedded Tanuki Service Wrapper 3.5.48

            h3. Steps to Reproduce
             # Start the *{{atlassian/bamboo-agent-base:9.0.1}}* docker container
             # Monitor the CPU and observe the *{{wrapper}}* process consuming 100% of it

            h3. Expected Results

            The Bamboo docker agent should run normally and not consume all the CPU
            h3. Actual Results

            *{{wrapper}}* process consumes 100% CPU
            h3. Workaround
            {panel:bgColor=#fffae6}
            (!) 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}}*
            {panel}
             # Copy the original *{{/opt/atlassian/etc/wrapper.conf.j2}}* file from the container to the host computer
             # Append *{{wrapper.disable_console_input=TRUE}}* to the end of the file
             # Either copy or mount the modified *{{wrapper.conf.j2}}* to the container on *{{/opt/atlassian/etc/}}*
             # Start the container
             # Alternatively, add the property to your own version of the container

            h3. Notes
            New: h3. Problem

            The Bamboo Agent and Bamboo Docker Agent [bamboo-agent-base|https://hub.docker.com/r/atlassian/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]
            {quote}
            h4. 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)._
            {quote}

            h3. Environment
             * Bamboo Agent (regular and Docker)
             * Embedded Tanuki Service Wrapper 3.5.48

            h3. Steps to Reproduce
             # Start the Remote Agent (9.0, 8.2.4) - Docker or regular
             # Monitor the CPU and observe the *{{wrapper}}* process consuming 100% of it

            h3. Expected Results

            The Bamboo docker agent should run normally and not consume all the CPU
            h3. Actual Results

            *{{wrapper}}* process consumes 100% CPU
            h3. Workaround

            On Docker Agent:
            {panel:bgColor=#fffae6}
            (!) 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}}*
            {panel}
             # Copy the original *{{/opt/atlassian/etc/wrapper.conf.j2}}* file from the container to the host computer
             # Append *{{wrapper.disable_console_input=TRUE}}* to the end of the file
             # Either copy or mount the modified *{{wrapper.conf.j2}}* to the container on *{{/opt/atlassian/etc/}}*
             # Start the container
             # Alternatively, add the property to your own version of the container

            On a regular Agent:
             # Append *{{wrapper.disable_console_input=TRUE}}* to the end of the *{{<bamboo-agent-home>/conf/wrapper.conf}}* file
             # Restart the Agent

            h3. Notes
            Eduardo Alvarenga (Inactive) made changes -
            Summary Original: Bamboo 9 Docker bamboo-agent-base uses 100% CPU New: Bamboo Agent uses 100% CPU
            Shashank Kumar made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 803501 ]
            Jyothi Charupalli made changes -
            Remote Link Original: This issue links to "Page (Confluence)" [ 718743 ]
            Jyothi Charupalli made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 718743 ]
            Marko Filipan made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 717960 ]
            Wioletta Dys made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            Zuzanna Struczewska made changes -
            Affects Version/s New: 8.2.4 [ 101493 ]
            SET Analytics Bot made changes -
            UIS New: 1

            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: