1

由于 gmaven-plugin 和 groovy 出现错误,提示 groovy 类路径找不到足够的对象堆空间。我使用的是 32 位系统和 Intellij IDEA。我尝试了各种选择但无法解决?

我尝试过的是:

<configuration>
  <argLine>-Xmx1024m</argLine>
</configuration>

Xmx256M -XX:MaxPermSize=512m
For 32 bit 
-Xms1336m -Xmx1336m

I Got the same error,and resolved this by configuring in the run.conf.bat
Run the JVM with the configuring run.conf.bat in Jboss5x
If free memory is not available AS you are passing in the statement then please make changes in run.conf.bat
set "JAVA_OPTS=-Xms512m -Xmx512m -XX:MaxPermSize=256m

<configuration>
    <maxmemory>1024M</maxmemory>
</configuration>

According to this IBM document about the Java heap size (along with some hints about setting the right heap size) the limits for Windows are:
•   maximum possible heap size on 32-bit Java: 1.8 GB
•   recommended heap size limit on 32-bit Java: 1.5 GB (or 1.8 GB with /3GB option)

MAVEN_OPTS="-Xms2048m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=1024m"

Could  anyone help me out in getting rid of this ?
4

0 回答 0