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
- Start the Remote Agent (9.0, 8.2.4) - Docker or regular
- 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
- 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
Notes
[BAM-22006] Bamboo Agent uses 100% CPU
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 |
Summary | Original: Bamboo 9 Docker bamboo-agent-base uses 100% CPU | New: Bamboo Agent uses 100% CPU |
Remote Link | New: This issue links to "Page (Confluence)" [ 803501 ] |
Remote Link | Original: This issue links to "Page (Confluence)" [ 718743 ] |
Remote Link | New: This issue links to "Page (Confluence)" [ 718743 ] |
Remote Link | New: This issue links to "Page (Confluence)" [ 717960 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Waiting for Release [ 12075 ] | New: Closed [ 6 ] |
Affects Version/s | New: 8.2.4 [ 101493 ] |
UIS | New: 1 |
Hi,
This is also affecting Bamboo version 8.2.4