Skip to content Skip to sidebar Skip to footer

Osx Maven Running Tests Exception: Java.lang.outofmemoryerror Thrown From The Uncaughtexceptionhandler In Thread "main"

I have been trying to run on mac a ready maven project which works under linux. When calling mvn clean install it runs a portion of the tests and then I am getting the following er

Solution 1:

I fixed this problem by adding another magic environmental variable

JAVA_TOOL_OPTIONS="-Xmx1024m -XX:MaxPermSize=512m -Xms512m"

Post a Comment for "Osx Maven Running Tests Exception: Java.lang.outofmemoryerror Thrown From The Uncaughtexceptionhandler In Thread "main""