Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

why STDOUT and STDERR buffering is very annoying?

SIDDU September 26, 2023

Our build process writes status to STDOUT, such as the current script that is executing. Sometimes one of our scripts hangs. We can't tell which script is hanging via the Bamboo UI because the Activity tab appears to buffer output. The last line written to STDOUT is critical. We'd rather not try to outsmart Bamboo by writing a lot of bogus lines to STDOUT.


Even I tried some solutions like:

  • stdbuf -i0 -o0 -e0
  •  By setting the environment variable PYTHONUNBUFFERED but no use

1 answer

0 votes
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 27, 2023

Hello @SIDDU

Welcome to Atlassian Community!

Bamboo has a default Agent -> Server heartbeat interval of 60 seconds, you can reduce that value at the cost of having more load on your server, but will likely show the logged output from your builds much more often. Make sure that you understand the consequences of that in your JVM as it will receive requests from your Agents much more often.

Check this KB article for instructions:

Best regards,

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events