java.lang.OutOfMemoryError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Java Stack Trace Loop | Feed the Beast
    via by Unknown author,
  • GC overhead limit exceeded
    via GitHub by endrebak
    ,
  • 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 {noformat} ... 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 ------------------------------------------------------------------------ {noformat} *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. {noformat} ... 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) {noformat}
    via by tobiisco,
    • java.lang.OutOfMemoryError: GC overhead limit exceeded at java.util.regex.Pattern.compile(Unknown Source) at java.util.regex.Pattern.<init>(Unknown Source) at java.util.regex.Pattern.compile(Unknown Source) at java.lang.String.replace(Unknown Source) at cpw.mods.fml.relauncher.FMLRelaunchLog$LoggingOutStream.flush(FMLRelaunchLog.java:98) at java.io.PrintStream.write(Unknown Source) at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source) at sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source) at sun.nio.cs.StreamEncoder.flushBuffer(Unknown Source) at java.io.OutputStreamWriter.flushBuffer(Unknown Source) at java.io.PrintStream.newLine(Unknown Source) at java.io.PrintStream.println(Unknown Source) at java.lang.Throwable$WrappedPrintStream.println(Unknown Source) at java.lang.Throwable.printStackTrace(Throwable.java:657) at java.lang.Throwable.printStackTrace(Throwable.java:642) at java.lang.Throwable.printStackTrace(Throwable.java:633) at java.lang.Thread.dumpStack(Unknown Source) at za.a(Chunk.java:862) at zn.a(AnvilChunkLoader.java:379) at zn.a(AnvilChunkLoader.java:93) at zn.a(AnvilChunkLoader.java:73) at id.f(ChunkProviderServer.java:154) at id.c(ChunkProviderServer.java:102) at ic.<init>(PlayerInstance.java:29) at ib.a(SourceFile:171) at ib.a(SourceFile:202) at ge.a(ServerConfigurationManager.java:133) at MystLinkController.teleportEntity(MystLinkController.java:103) at MystLinkController.travelEntity(MystLinkController.java:44) at xcompwiz.mystcraft.TileEntityBookDisplay.link(TileEntityBookDisplay.java:60) at xcompwiz.mystcraft.TileEntityBookDisplay.processMessageData(TileEntityBookDisplay.java:49) at xcompwiz.mystcraft.MPacketMessage.sendMessage(MPacketMessage.java:52)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,