TestNG 6.13.1 leads to out of memory in surefire fork
See original GitHub issueHi!
During my development, I found out that I was unable to build the citrus-core module after the update of TestNG to 6.13.1, due to forever running test ending up in a java.lang.OutOfMemoryError: Java heap space
exception. This occurred during surefire forked test.
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20.1</version>
<configuration>
<systemProperties>
<property>
<name>javax.xml.parsers.SAXParserFactory</name>
<value>org.apache.xerces.jaxp.SAXParserFactoryImpl</value>
</property>
<property>
<name>user.language</name>
<value>en</value>
</property>
</systemProperties>
<forkMode>once</forkMode>
<failIfNoTests>false</failIfNoTests>
<skipTests>${skip.unit.tests}</skipTests>
<excludes>
<exclude>**/IT*.java</exclude>
<exclude>**/*IT.java</exclude>
</excludes>
<workingDirectory>${project.build.directory}</workingDirectory>
</configuration>
</plugin>
One should try to find the root cause, test whether newer/older TestNG versions have the same problem and report an issue to the TestNG devs as far as it is a TestNG related root cause.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
java.lang.OutOfMemoryError: Java heap space in Maven
When I run maven test, java.lang.OutOfMemoryError happens. I google it for solutions and have tried to export MAVEN_OPTS=-Xmx1024m, but it did not work....
Read more >Jenkins Maven Surefire OOM - Ralph YY's Blog
The issue is only when we use combination jenkins + surefire maven test, the surefire output will stay in jenkins node memory!!! That's...
Read more >Spring Framework Reference Documentation
The spring-web module provides basic web-oriented integration features such as multipart file upload functionality and the initialization of the IoC container ...
Read more >Matthew 1-27 Good News Translation - Bible Gateway
12 His winnowing fork is in his hand, and he will clear his threshing floor ... Hetzron was the father of Ram, ......
Read more >Release Notes - Hortonworks Data Platform
Duplicate surefire plugin config in hadoop-common. ... HDFS-8965: Harden edit log reading code against out of memory errors.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi!
I investigated the issue with the newest TestNG version 6.14.2 and unfortunately the problem still exists.
Here is the detailed stack trace for further investigation.
Hi @tushar025! Glad to hear that! I’ve also created a TestNG issue. https://github.com/cbeust/testng/issues/1788 The problem is known, fixed and will be part of the next release, which is unfortunately currently not scheduled. Nevertheless, this might be interesting for you as well!