Temporary folder takes a lot of space in the operating system running Bamboo remote agents

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

At times the operating system /tmp folder can get really large in size with files created by Bamboo causing issues with running your agents as your disk may run out of space.

Environment

Bamboo remote agents

Diagnosis

  1. Run multiple builds on your remote agents.
  2. Monitor your operating system temporary folder.

Cause

The agent java process uses the default operating system temporary folder to store temporary files created by the build processes. By default the plan key is added as a sub folder to the default operating system temporary folder. In addition, some of the third party add-ons will also use the that folder to store files that are needed for the agent to run their builds.

The clean up of this folder is defined by the operating system and depending on your linux distribution this will happen at different intervals

Solution

These intervals should be configurable and the exact details on how to change the clean up period may depend on your operating system and Linux distribution. Alternatively, you can move this data to a place with more space if you needed. To do so, please follow the steps on this article: How to configure the temporary directory for a Bamboo remote agent.

Note, that it is safe to delete the files manually or have an automation that will delete those files at your desired times.

Last modified on Aug 25, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.