java.lang.OutOfMemoryError: PermGen space
程序员文章站
2022-06-13 21:29:34
...
错误提示:
问题出现场景:
ant的buil.xml中,用来执行junit
更改为:
PermGen space
java.lang.OutOfMemoryError: PermGen space
at java.lang.String.intern(Native Method)
at com.eh.applicator.productcatalog.model.EHProductDO62CTest.testevaluate(EHProductDO62CTest.java:14)
at com.mm.MMTestCaseBase.run(MMTestCaseBase.java:91)
问题出现场景:
ant的buil.xml中,用来执行junit
<junit printsummary="yes" fork="yes" forkmode="once" errorProperty="junit.test.failed" failureProperty="junit.test.failed">
<jvmarg value="-Xmx712m" />
</junit>
更改为:
<junit printsummary="yes" fork="yes" forkmode="once" errorProperty="junit.test.failed" failureProperty="junit.test.failed">
<jvmarg value="-Xmx712m" />
<jvmarg value="-XX:MaxPermSize=512m" />
这里设置了一个maxPermsize
</junit>
上一篇: 如何让新的网站被收录?蜘蛛池帮你解决
下一篇: java.lang.OutOfMemoryError: Failed to allocate a 2198284 byte allocation with 191616 free bytes and
推荐阅读
-
ORA-27300: OS system dependent operation:sendmsg failed with status: 105 ORA-27301: OS failure message: No buffer space available
-
VBS教程:函数-Space 函数
-
eclipse scala Could not reserve enough space for object heap
-
css white-space:nowrap属性用法(可以强制文字不换行输出)
-
CentOS 出现no space left on device错误解决办法
-
[20190918]shrink space与ORA-08102错误.txt
-
java中程序上线报错: tomcat中java.lang.OutOfMemoryError: PermGen space
-
隐藏X-Space个人空间下方版权方法隐藏X-Space个人空间标题隐藏X-Space个人空间管理版权方法
-
spark大批量读取Hbase时出现java.lang.OutOfMemoryError: unable to create new native thread
-
php disk_free_space 返回目录可用空间