【问题标题】:How to set the PermSize for scalatest-maven-plugin?如何为 scalatest-maven-plugin 设置 PermSize?
【发布时间】:2015-11-21 15:58:01
【问题描述】:

我们使用 scalatest-maven-plugin 运行一些 spark 测试,默认 perm 大小在 80M 左右,不够用,所以经常出现“OutOfMemoryError: PermGen”。

我试图给它更大的尺寸,但没有找到如何配置它

【问题讨论】:

    标签: java maven memory jvm scalatest


    【解决方案1】:

    您可以使用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>
    

    【讨论】:

      猜你喜欢
      • 2023-01-24
      • 2018-05-16
      • 1970-01-01
      • 1970-01-01
      • 2019-10-13
      • 2021-12-22
      • 2015-01-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多