java heap space linux_Arquillian与tomcat7运行Java Heap Space问题,仅在linux上运行

我们用tomcat 7运行arquillian …

使用我的同事的MAC测试工作正常,但在我的

Linux计算机上(我们都有8gb ram)它很容易:

FATAL: Error waiting for multi-thread deployment of WAR files to complete

java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space

当我开始测试时,我在堆栈中看到这一行:

14:05:56.482 INFO – Starting Tomcat with: [java,

-Dcom.sun.management.jmxremote.port=8089, -Dcom.sun.management.jmxremote.ssl=false, -Dcom.sun.management.jmxremote.authenticate=false, -Xmx512m, -XX:MaxPermSize=128m, -classpath, /home/user/apache-tomcat-testing/bin/bootstrap.jar:/home/user/apache-tomcat-testing/bin/tomcat-juli.jar,

-Djava.endorsed.dirs=/home/user/apache-tomcat-testing/endorsed, -Dcatalina.base=/home/user/apache-tomcat-testing, -Dcatalina.home=/home/user/apache-tomcat-testing, -Djava.io.tmpdir=/home/user/apache-tomcat-testing/temp, org.apache.catalina.startup.Bootstrap, -config,

/home/user/apache-tomcat-testing/conf/server.xml, start]

我试着编辑bin / catalina.sh

JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms2048m -Xmx2048m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=512m -XX:+DisableExplicitGC"

但它仍然有堆栈中的xmx = 512m.

我还在pom.xml中添加了< argLine> -Xms2048m -Xmx2048m< / argLine>对于failsafe-maven-plugin和maven-surefire-plugin,但仍然是同样的错误……

在arquillian测试中更改xmx的正确位置在哪里?

谢谢!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值