June 20, 2016

How to solve: "ERROR: Maven JVM terminated unexpectedly with exit code 137"

In case your Jenkins CI fails to complete building your project but only logging the following:

ERROR: Maven JVM terminated unexpectedly with exit code 137

It means maven does NOT have enough memory available. To solve this, simply increase your MAVEN_OPTS memory. Or you may need to increase your system's memory. This is very likely if you run your Jenkins on a virtual machine and you are stingy of memory.
Post a Comment

Featured Post

Check which window manager is running on Linux

In the terminal type  env  to see all environment variables. Some of them are: XDG_CURRENT_DESKTOP  - Tells you what Windows Manager you...