码迷,mamicode.com
首页 > 编程语言 > 详细

netbean out of memory java heap space

时间:2019-11-25 09:34:06      阅读:60      评论:0      收藏:0      [点我收藏+]

标签:OLE   scene   dep   stc   netbeans   space   tor   perm   put   

When run test file in netbean.

all dependency and resource are right, but it raise up

java.lang.OutOfMemoryError: Java heap space

                at LUX_API_ArticleTest.testComputeEolObsolesceneRisk(LUX_API_ArticleTest.java:505)

 

solution1: change netbean conf file , increase start heap size and maximum heap size.

C:\Program Files\netbeans\etc\netbean.conf

–J-Xmx64m  maximum heap size

-J-Xms64m start heap size

 

Solution2: modify maven mvn.bat configuration file in bin directory of maven home

set MAVEN_OPTS=-Xms256m -Xmx768m -XX:PermSize=128m -XX:MaxPermSize=256M

netbean out of memory java heap space

标签:OLE   scene   dep   stc   netbeans   space   tor   perm   put   

原文地址:https://www.cnblogs.com/daniel123/p/11925443.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!