It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Remote Agent Using too much virtual memory

John Bowker May 24, 2012

We've been using Bamboo for a couple months and noticed that when you install a remote agent as a Windows service it starts to consume vast amounts of virtual memory to the point where the service needs to be stopped and restarted.

Is there something in the remote agent configuration that can be edited to limit virtual memory use or is this a memory leak with the remote agent code?

1 answer

1 accepted

1 vote
Answer accepted
Przemek Bruski Atlassian Team May 24, 2012

Java programs eat as much memory as you give them. The default for heap is 512MB (there are some other memory types than heap, but heap is the biggest one). That limit is enforced by Java and the agent cannot exceed it.

If the agent reaches 500-700MB and stays there, that's normal. If it runs out of memory (dies / shows OutOfMemory errors), you should contact support. They will ask you for a heap dump, so if you know how to create it, you should attach it to the issue.

You can decrease the upper memory limit by modifying wrapper.java.maxmemory in the wrapper.conf file located in your agent home directory. You should be able to reduce it to 256MB without much problems - but if you run of memory, keep in mind that's unsupported.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Next-gen

Introducing subtasks for breaking down work in next-gen projects

Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...

1,095 views 13 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you