【发布时间】:2015-11-21 15:58:01
【问题描述】:
我们使用 scalatest-maven-plugin 运行一些 spark 测试,默认 perm 大小在 80M 左右,不够用,所以经常出现“OutOfMemoryError: PermGen”。
我试图给它更大的尺寸,但没有找到如何配置它
【问题讨论】:
标签: java maven memory jvm scalatest
我们使用 scalatest-maven-plugin 运行一些 spark 测试,默认 perm 大小在 80M 左右,不够用,所以经常出现“OutOfMemoryError: PermGen”。
我试图给它更大的尺寸,但没有找到如何配置它
【问题讨论】:
标签: java maven memory jvm scalatest
您可以使用argLine 此处记录的配置参数http://www.scalatest.org/user_guide/using_the_scalatest_maven_plugin
<plugin>
<groupId>org.scalatest</groupId>
<artifactId>scalatest-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
<junitxml>.</junitxml>
<filereports>WDF TestSuite.txt</filereports>
<argLine>-XX:MaxPermSize=128m</argLine>
</configuration>
<executions>
<execution>
<id>test</id>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
【讨论】: