如何为scalatest-maven-plugin设置PermSize? [英] How to set the PermSize for scalatest-maven-plugin?

查看:86
本文介绍了如何为scalatest-maven-plugin设置PermSize?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用scalatest-maven-plugin运行一些火花测试,并且默认的烫发大小约为80M,这还不够,因此我们经常会收到"OutOfMemoryError:PermGen".

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

推荐答案

您可以使用此处记录的argLine配置参数

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>

这篇关于如何为scalatest-maven-plugin设置PermSize?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆