Setting Java heap space under Maven 2 on Windows

前端 未结 8 1173
情深已故
情深已故 2020-12-02 06:39

I get this message during build of my project

java.lang.OutOfMemoryError: Java heap space

How do I increase heap space, I\'ve

8条回答
  •  天命终不由人
    2020-12-02 07:18

    After trying to use the MAVEN_OPTS variable with no luck, I came across this site which worked for me. So all I had to do was add -Xms128m -Xmx1024m to the default VM options and it worked.

    To change those in Eclipse, go to Window -> Preferences -> Java -> Installed JREs. Select the checked JRE/JDK and click edit.

提交回复
热议问题