java.lang.OutOfMemoryError: Java heap space

Coderanch | Sandeep Bhoyar | 5 years ago
  1. 0

    spring webservice server crashes on large attachment

    Stack Overflow | 4 years ago | user1521469
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    Java heap dump analysis tools keep crashing

    Stack Overflow | 5 years ago | scphantm
    java.lang.OutOfMemoryError: Java heap space
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    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)

    Jenkins JIRA | 5 years ago | Greg Moncreaff
    java.lang.OutOfMemoryError: Java heap space
  5. 0

    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}

    SonarSource JIRA | 5 years ago | Davide Taibi
    java.lang.OutOfMemoryError: Java heap space

  1. Handemelindo 2 times, last 1 month ago
  2. Tahir 2 times, last 2 months ago
  3. Tahir 2 times, last 2 months ago
  4. harshg 2 times, last 3 months ago
  5. sunils 1 times, last 5 months ago
3 more registered users
16 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.OutOfMemoryError

    Java heap space

    at java.util.Arrays.copyOf()
  2. Java RT
    StringBuilder.append
    1. java.util.Arrays.copyOf(Arrays.java:2882)
    2. java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
    3. java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:515)
    4. java.lang.StringBuilder.append(StringBuilder.java:189)
    4 frames