Sunday, April 15, 2012

hudson java.lang.OutOfMemoryError: Java heap space


 o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
 o.h.m.e.h.MavenExecutionResultHandler - [1] java.lang.OutOfMemoryError: Java heap space
 Closing connection to remote
 Java heap space -> [Help 1]
If you are using Maven on hudson for continuous integration and if there is a error for outofmemory then

  • Navigate Hudson -> [project] -> configuration
  • Build -> Invoke Maven 3 -> JVM option
  • put following parameter in that property                                                 -Xmx1024m -XX:MaxPermSize=256m -XX:+DisableExplicitGC

Other way is you can set following in mvn file
export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m -XX:+DisableExplicitGC"

No comments:

Post a Comment