-
Bug
-
Resolution: Fixed
-
Major
-
None
-
o Microsoft Windows Server 2003 RS2 (4.0 GB RAM (physical))
o Tomcat 6.0.29
o Hudson 1.383
o Java 1.5.0_15
o Maven 2.2.1
o Current Catalina, Java and Maven options: -Xmx1124m
Hi,
We have some troubles with a Hudson job, which builds a Java component consisting of several projects. One of the projects/modules in this component executes up to 400'000 unit tests. They went through fine, but the job fails, when trying to record the test results. To build our component we are using Maven.
- We were trying to adjust the maximum heap space (in JAVA_OPTS, CATALINA_OPTS, MAVEN_OPTS and Surefire) up to 2.0 GB without success.
- We defined the job as a Maven2 job and a freestyle job, both with the same result. (see output below)
- When we disabled the publishing of the JUnit test results, then the job went through fine.
We assume the recording and publishing of the JUnit test results is not properly implemented to support such a huge amount of unit tests. Is it possible to improve this?
Configured as Maven2 job
- Job fails when trying to record the test results within the module (Java project) it builds
... Tests run: 380558, Failures: 54, Errors: 7, Skipped: 152889 ERROR There are test failures. Please refer to D:\.hudson\jobs\bpmgen_NB\workspace\bpmgen\nativesupport\target\surefire-reports for the individual test results. [HUDSON] Recording test results [HUDSON] Archiving D:\.hudson\jobs\bpmgen_NB\workspace\bpmgen\nativesupport\pom.xml to D:\.hudson\jobs\bpmgen_NB\modules\com.alstom.its.bpmgen$nativesupport\builds\2010-12-30_05-19-25\archive\com.alstom.its.bpmgen\nativesupport\1.9.2-SNAPSHOT\pom.xml INFO ------------------------------------------------------------------------ ERROR BUILD ERROR INFO ------------------------------------------------------------------------ INFO Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-surefire-plugin:2.5:test': Remote call on channel failed Java heap space INFO ------------------------------------------------------------------------ INFO For more information, run Maven with the -e switch INFO ------------------------------------------------------------------------ INFO Total time: 232 minutes 30 seconds INFO Finished at: Thu Dec 30 09:11:59 CET 2010 INFO Final Memory: 207M/470M INFO ------------------------------------------------------------------------
Configured as freestyle job
- Build is successful, but fails when trying to record the test results at the end of the job
- When disabling the publishing of the JUnit test results, then the job went through fine.
... INFO ------------------------------------------------------------------------ INFO Reactor Summary: INFO ------------------------------------------------------------------------ INFO STITS BPM ............................................. SUCCESS [1:10.418s] INFO STITS BPM BMD Definition Plugin ....................... SUCCESS [50.544s] INFO STITS BPM Common Plugin ............................... SUCCESS [46.653s] INFO STITS Platform Shared Component Function Element Plugin SUCCESS [1:22.230s] INFO STITS BPM Document Creator Plugin ..................... SUCCESS [22.093s] INFO STITS BPM Native Support Plugin ....................... SUCCESS [3:28:31.794s] INFO STITS BPM Native Support Binaries Fragment ............ SUCCESS [1:45.401s] INFO STITS BPM Generator Plugin ............................ SUCCESS [29:22.398s] INFO STITS BPM Integration Plugin .......................... SUCCESS [3:50.956s] INFO STITS BPM CLI Plugin .................................. SUCCESS [21.576s] INFO STITS BPM GUI Plugin .................................. SUCCESS [44.920s] INFO STITS BPM Help Plugin ................................. SUCCESS [24.014s] INFO STITS BPM Feature ..................................... SUCCESS [40.045s] INFO ------------------------------------------------------------------------ INFO ------------------------------------------------------------------------ INFO BUILD SUCCESSFUL INFO ------------------------------------------------------------------------ INFO Total time: 250 minutes 25 seconds INFO Finished at: Thu Dec 30 05:13:55 CET 2010 INFO Final Memory: 57M/119M INFO ------------------------------------------------------------------------ There was no such logger 'org.apache.maven.plugin.MavenPluginCollector' 33356313. There was no such logger 'org.apache.maven.settings.MavenSettingsBuilder' 33356313. There was no such logger 'org.apache.maven.artifact.resolver.ArtifactResolver' 33356313. There was no such logger 'org.sonatype.plexus.components.cipher.PlexusCipher:default' 33356313. There was no such logger 'org.apache.maven.project.interpolation.ModelInterpolator' 33356313. There was no such logger 'org.apache.maven.plugin.registry.MavenPluginRegistryBuilder' 33356313. There was no such logger 'org.apache.maven.usability.diagnostics.ErrorDiagnostics' 33356313. There was no such logger 'org.apache.maven.artifact.metadata.ArtifactMetadataSource:maven' 33356313. There was no such logger 'org.apache.maven.plugin.PluginManager' 33356313. There was no such logger 'org.apache.maven.Maven' 33356313. There was no such logger 'org.apache.maven.artifact.repository.metadata.RepositoryMetadataManager' 33356313. There was no such logger 'org.apache.maven.artifact.transform.ArtifactTransformation:release' 33356313. There was no such logger 'org.apache.maven.toolchain.ToolchainManager' 33356313. There was no such logger 'org.apache.maven.artifact.deployer.ArtifactDeployer' 33356313. There was no such logger 'org.apache.maven.project.MavenProjectBuilder' 33356313. There was no such logger 'org.apache.maven.artifact.transform.ArtifactTransformation:snapshot' 33356313. There was no such logger 'org.apache.maven.artifact.manager.WagonManager' 33356313. There was no such logger 'org.apache.maven.artifact.installer.ArtifactInstaller' 33356313. There was no such logger 'org.apache.maven.ConfigurationInterpolator' 33356313. There was no such logger 'org.apache.maven.artifact.transform.ArtifactTransformation:latest' 33356313. Recording test results FATAL: Java heap space java.lang.OutOfMemoryError: Java heap space at java.util.regex.Matcher.<init>(Matcher.java:201) at java.util.regex.Pattern.matcher(Pattern.java:879) at java.lang.String.replace(String.java:2018) at hudson.tasks.junit.CaseResult.parseTime(CaseResult.java:83) at hudson.tasks.junit.CaseResult.<init>(CaseResult.java:125) at hudson.tasks.junit.SuiteResult.<init>(SuiteResult.java:160) at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:108) at hudson.tasks.junit.TestResult.parse(TestResult.java:199) at hudson.tasks.junit.TestResult.parse(TestResult.java:155) at hudson.tasks.junit.TestResult.<init>(TestResult.java:118) at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:114) at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:87) at hudson.FilePath.act(FilePath.java:753) at hudson.FilePath.act(FilePath.java:735) at hudson.tasks.junit.JUnitParser.parse(JUnitParser.java:83) at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:122) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:133) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558) at hudson.model.Build$RunnerImpl.post2(Build.java:157) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1348) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:139)