We have some pretty memory-intensive Bambo builds. Even with remote agents that have 24GB of RAM, we still manage to chew through it. On users' machines, this just results in slower builds. But in Bamboo, it causes the agent to die. I was wondering what my options are to keep the agent alive. Is allocating more memory in the wrapper.conf file reasonable (currently, wrapper.java.initmemory and maxmemory are both set to 1024)? Is there something else I can set to make the agent service more tolerant?
FYI, the logs from the agent look like this. I can't make sense of it, but perhaps it might give someone else a clue and can point me in the right direction:
2012-05-30 15:06:47,293 INFO [QuartzScheduler_QuartzSchedulerThread] [SystemInfo] Can't get free disk space. A warning returned.
java.io.IOException: Cannot run program "df": java.io.IOException: error=12, Cannot allocate memory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at org.apache.commons.io.FileSystemUtils.openProcess(FileSystemUtils.java:454)
at org.apache.commons.io.FileSystemUtils.performCommand(FileSystemUtils.java:404)
at org.apache.commons.io.FileSystemUtils.freeSpaceUnix(FileSystemUtils.java:323)
at org.apache.commons.io.FileSystemUtils.freeSpaceOS(FileSystemUtils.java:196)
at org.apache.commons.io.FileSystemUtils.freeSpaceKb(FileSystemUtils.java:166)
at com.atlassian.bamboo.configuration.SystemInfo.<init>(SystemInfo.java:140)
at com.atlassian.bamboo.configuration.SystemInfoFactory.getSystemInfo(SystemInfoFactory.java:35)
FYI, this is on Bamboo v3.2. Perhaps newer versions of Bamboo are more resiliant?