Cause
The main part of the above error message is this: "java.lang.OutOfMemoryError: Java heap space". Bamboo remote agent runs out of Java heap.Resolution
Increase the heap from REMOTE_AGENT_INSTALL/conf/wrapper.conf file:# Initial Java Heap Size (in MB) wrapper.java.initmemory= 512 # Maximum Java Heap Size (in MB) wrapper.java.maxmemory= 1024 |
In case a similar error happens for Bamboo server, the heap can similarly be increased for Bamboo server from BAMBOO_INSTALL/conf/wrapper.conf file:
... wrapper.java.additional. 3 =-Xms512m wrapper.java.additional. 4 =-Xmx1024m ... |
Add Environment Variables:
JAVA_OPTS="-Xmx256m -Xms128m"
JAVA_OPTS="-Xmx512m -Xms256m"
ANT_OPTS=”-Xmx1024m -Xms512m”
MAVEN_OPTS "-XmsMIN_HEAPm -XmxMAX_HEAPm"
Không có nhận xét nào:
Đăng nhận xét