How to set the PermSize for scalatest-maven-plugin?

寵の児 提交于 2019-12-10 17:08:25

问题


We're using scalatest-maven-plugin to run some spark tests, and the default perm size is around 80M, which is not enough, so we often got "OutOfMemoryError: PermGen".

I tried to give it a bigger size, but not found how to configure it


回答1:


You could use argLine config parameter as documented here 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>


来源:https://stackoverflow.com/questions/32246485/how-to-set-the-permsize-for-scalatest-maven-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!