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.

  • heap space
    via by Isaac Ferguson,
  • Java heap dump analysis tools keep crashing
    via Stack Overflow by scphantm
    ,
  • Is it possible to catch this flag build as unstable but not automatically failed, (or use the "error during processing result") and abort only DRY publisher but still let the other publishers have a chance? a few web searches indicate that reuse of objects instead of allocating new and letting GC reclaim might be something to consider? 11:56:51 [DRY] Collecting duplicate code analysis files... 12:02:34 FATAL: Java heap space 12:02:34 java.lang.OutOfMemoryError: Java heap space 12:02:34 at java.util.Arrays.copyOf(Arrays.java:2882) 12:02:34 at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) 12:02:34 at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:515) 12:02:34 at java.lang.StringBuilder.append(StringBuilder.java:189) 12:02:34 at org.apache.commons.digester3.Digester.characters(Digester.java:988) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(AbstractSAXParser.java:538) 12:02:34 at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:464) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) 12:02:34 at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) 12:02:34 at org.apache.commons.digester3.Digester.parse(Digester.java:1642) 12:02:34 at org.apache.commons.digester3.Digester.parse(Digester.java:1701) 12:02:34 at hudson.plugins.dry.parser.cpd.CpdParser.parse(CpdParser.java:86) 12:02:34 at hudson.plugins.dry.parser.DuplicationParserRegistry.parse(DuplicationParserRegistry.java:73) 12:02:34 at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:358) 12:02:34 at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:317) 12:02:34 at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:266) 12:02:34 at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) 12:02:34 at hudson.FilePath.act(FilePath.java:788) 12:02:34 at hudson.FilePath.act(FilePath.java:770) 12:02:34 at hudson.plugins.dry.DryPublisher.perform(DryPublisher.java:171) 12:02:34 at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:338) 12:02:34 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 12:02:34 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700) 12:02:34 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:675) 12:02:34 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:653) 12:02:34 at hudson.model.Build$RunnerImpl.post2(Build.java:162) 12:02:34 at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:622) 12:02:34 at hudson.model.Run.run(Run.java:1434) 12:02:34 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    via by Greg Moncreaff,
  • Java heap space out of memory during decorator execution. This is the ANT_OPTS configuration: ANT_OPTS="-Xms512m -Xmx6144m -XX:MaxPermSize=512m" The problem faced during the analysis of Alfresco (http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/) This is the full stacktrace: {noformat} [sonar:sonar] [INFO] Execute decorators... BUILD FAILED /Volumes/Data/davide/Projects/Sonar_Analysis/alfresco/build.xml:75: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:515) at java.lang.StringBuilder.append(StringBuilder.java:189) at org.hibernate.type.StringClobType.nullSafeGet(StringClobType.java:45) at org.hibernate.type.CustomType.nullSafeGet(CustomType.java:128) at org.hibernate.type.AbstractType.hydrate(AbstractType.java:105) at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2114) at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1404) at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1332) at org.hibernate.loader.Loader.getRow(Loader.java:1230) at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:603) at org.hibernate.loader.Loader.doQuery(Loader.java:724) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259) at org.hibernate.loader.Loader.doList(Loader.java:2232) at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129) at org.hibernate.loader.Loader.list(Loader.java:2124) at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401) at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363) at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1149) at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102) at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:67) at org.sonar.jpa.session.JpaDatabaseSession.getSingleResult(JpaDatabaseSession.java:183) at org.sonar.jpa.session.JpaDatabaseSession.getSingleResult(JpaDatabaseSession.java:212) at org.sonar.batch.components.PastViolationsLoader.getSource(PastViolationsLoader.java:63) at org.sonar.plugins.core.timemachine.ViolationPersisterDecorator.decorate(ViolationPersisterDecorator.java:74) at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:77) at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:68) at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:61) at org.sonar.batch.phases.DecoratorsExecutor.decorateResource(DecoratorsExecutor.java:61) at org.sonar.batch.phases.DecoratorsExecutor.execute(DecoratorsExecutor.java:53) Total time: 7 minutes 0 seconds {noformat}
    via by Davide Taibi,
  • Is it possible to catch this flag build as unstable but not automatically failed, (or use the "error during processing result") and abort only DRY publisher but still let the other publishers have a chance? a few web searches indicate that reuse of objects instead of allocating new and letting GC reclaim might be something to consider? 11:56:51 [DRY] Collecting duplicate code analysis files... 12:02:34 FATAL: Java heap space 12:02:34 java.lang.OutOfMemoryError: Java heap space 12:02:34 at java.util.Arrays.copyOf(Arrays.java:2882) 12:02:34 at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) 12:02:34 at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:515) 12:02:34 at java.lang.StringBuilder.append(StringBuilder.java:189) 12:02:34 at org.apache.commons.digester3.Digester.characters(Digester.java:988) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(AbstractSAXParser.java:538) 12:02:34 at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:464) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119) 12:02:34 at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) 12:02:34 at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) 12:02:34 at org.apache.commons.digester3.Digester.parse(Digester.java:1642) 12:02:34 at org.apache.commons.digester3.Digester.parse(Digester.java:1701) 12:02:34 at hudson.plugins.dry.parser.cpd.CpdParser.parse(CpdParser.java:86) 12:02:34 at hudson.plugins.dry.parser.DuplicationParserRegistry.parse(DuplicationParserRegistry.java:73) 12:02:34 at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:358) 12:02:34 at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:317) 12:02:34 at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:266) 12:02:34 at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) 12:02:34 at hudson.FilePath.act(FilePath.java:788) 12:02:34 at hudson.FilePath.act(FilePath.java:770) 12:02:34 at hudson.plugins.dry.DryPublisher.perform(DryPublisher.java:171) 12:02:34 at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:338) 12:02:34 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 12:02:34 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700) 12:02:34 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:675) 12:02:34 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:653) 12:02:34 at hudson.model.Build$RunnerImpl.post2(Build.java:162) 12:02:34 at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:622) 12:02:34 at hudson.model.Run.run(Run.java:1434) 12:02:34 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    via by Greg Moncreaff,
  • Exception in thread "http-bio-8080-exec-3"
    via by Sandeep Bhoyar,
  • Report generation OOME
    via GitHub by isavin
    ,
    • java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:515) at java.lang.StringBuilder.append(StringBuilder.java:189) at org.apache.jasper.compiler.JDTCompiler$1CompilationUnit.getContents(JDTCompiler.java:122) at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:9896) at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:9868) at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse(Parser.java:8434) at org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:718) at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:383)

    Users with the same issue

    Handemelindo
    1 times, last one,
    Unknown visitor1 times, last one,
    harshg
    2 times, last one,
    sunils
    1 times, last one,
    mortalman7
    1 times, last one,
    57 more bugmates