`
freetosoar
  • 浏览: 35207 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Maven2:OutOfMemory when execute mvn command

    博客分类:
  • Java
阅读更多

Today,  The application run into java.lang.OutOfMemory when executing the "mvn site " to generate reports.

 

Solution:

 

 The maven has provided a machnism to upate the jvm option. It can be fixed by the following step(s):

 

 On Window,

  Set MAVEN_OPTS="-Xmx1024m -Xms512m"

 

  On Unix/Linux:

  export MAVEN_OPTS="-Xmx1024m -Xms512m"

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics