java.lang.OutOfMemoryError: GC overhead limit exceeded

Atlassian JIRA | Adam Myatt | 4 years ago
  1. 0

    I have a Bamboo plan that has 16158 build results. In the Plan Summary screen in the upper right there's a dropdown that says "Showing Last 25 Builds". If I change it to Show All Builds, Bamboo thinks for a while, then crashes with a stacktrace : java.lang.OutOfMemoryError: GC overhead limit exceeded at net.sf.hibernate.impl.SessionImpl.addUninitializedCollection(SessionImpl.java:3203) at net.sf.hibernate.impl.SessionImpl.getCollection(SessionImpl.java:3984) at net.sf.hibernate.type.PersistentCollectionType.resolveIdentifier(PersistentCollectionType.java:171) at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:2221) at net.sf.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:319) at net.sf.hibernate.loader.Loader.doQuery(Loader.java:309) at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:138) at net.sf.hibernate.loader.Loader.doList(Loader.java:1063) at net.sf.hibernate.loader.Loader.list(Loader.java:1048) at net.sf.hibernate.loader.CriteriaLoader.list(CriteriaLoader.java:118) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:3662) at net.sf.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:238) at com.atlassian.bamboo.resultsummary.BuildResultsSummaryHibernateDao$8.doInHibernate(BuildResultsSummaryHibernateDao.java:413) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370) at org.springframework.orm.hibernate.HibernateTemplate.executeFind(HibernateTemplate.java:341) at com.atlassian.bamboo.resultsummary.BuildResultsSummaryHibernateDao.findResultsSummaries(BuildResultsSummaryHibernateDao.java:409) In my Bamboo I already have the JVM max heap up'ed to 6 GB and have tried passing -XX:-UseGCOverheadLimit to disable the GC overhead. However it still crashes when viewing all builds.

    Atlassian JIRA | 4 years ago | Adam Myatt
    java.lang.OutOfMemoryError: GC overhead limit exceeded
  2. 0

    I have a Bamboo plan that has 16158 build results. In the Plan Summary screen in the upper right there's a dropdown that says "Showing Last 25 Builds". If I change it to Show All Builds, Bamboo thinks for a while, then crashes with a stacktrace : java.lang.OutOfMemoryError: GC overhead limit exceeded at net.sf.hibernate.impl.SessionImpl.addUninitializedCollection(SessionImpl.java:3203) at net.sf.hibernate.impl.SessionImpl.getCollection(SessionImpl.java:3984) at net.sf.hibernate.type.PersistentCollectionType.resolveIdentifier(PersistentCollectionType.java:171) at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:2221) at net.sf.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:319) at net.sf.hibernate.loader.Loader.doQuery(Loader.java:309) at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:138) at net.sf.hibernate.loader.Loader.doList(Loader.java:1063) at net.sf.hibernate.loader.Loader.list(Loader.java:1048) at net.sf.hibernate.loader.CriteriaLoader.list(CriteriaLoader.java:118) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:3662) at net.sf.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:238) at com.atlassian.bamboo.resultsummary.BuildResultsSummaryHibernateDao$8.doInHibernate(BuildResultsSummaryHibernateDao.java:413) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370) at org.springframework.orm.hibernate.HibernateTemplate.executeFind(HibernateTemplate.java:341) at com.atlassian.bamboo.resultsummary.BuildResultsSummaryHibernateDao.findResultsSummaries(BuildResultsSummaryHibernateDao.java:409) In my Bamboo I already have the JVM max heap up'ed to 6 GB and have tried passing -XX:-UseGCOverheadLimit to disable the GC overhead. However it still crashes when viewing all builds.

    Atlassian JIRA | 4 years ago | Adam Myatt
    java.lang.OutOfMemoryError: GC overhead limit exceeded
  3. 0

    OutOfMemoryError exception when reading Avro files on GCS

    Stack Overflow | 2 years ago | Jason Chou
    java.lang.OutOfMemoryError: GC overhead limit exceeded
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [platform] Unhandled event loop exception

    Eclipse Bugzilla | 2 years ago | error-reports-inbox
    java.lang.OutOfMemoryError: GC overhead limit exceeded
  6. 0

    Java Out of Memory Problems | Wowza Support

    wowza.com | 1 year ago
    java.lang.OutOfMemoryError: GC overhead limit exceeded

    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

      GC overhead limit exceeded

      at net.sf.hibernate.impl.SessionImpl.addUninitializedCollection()
    2. net.sf.hibernate
      CriteriaImpl.list
      1. net.sf.hibernate.impl.SessionImpl.addUninitializedCollection(SessionImpl.java:3203)
      2. net.sf.hibernate.impl.SessionImpl.getCollection(SessionImpl.java:3984)
      3. net.sf.hibernate.type.PersistentCollectionType.resolveIdentifier(PersistentCollectionType.java:171)
      4. net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:2221)
      5. net.sf.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:319)
      6. net.sf.hibernate.loader.Loader.doQuery(Loader.java:309)
      7. net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:138)
      8. net.sf.hibernate.loader.Loader.doList(Loader.java:1063)
      9. net.sf.hibernate.loader.Loader.list(Loader.java:1048)
      10. net.sf.hibernate.loader.CriteriaLoader.list(CriteriaLoader.java:118)
      11. net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:3662)
      12. net.sf.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:238)
      12 frames
    3. com.atlassian.bamboo
      BuildResultsSummaryHibernateDao$8.doInHibernate
      1. com.atlassian.bamboo.resultsummary.BuildResultsSummaryHibernateDao$8.doInHibernate(BuildResultsSummaryHibernateDao.java:413)
      1 frame
    4. Hibernate
      HibernateTemplate.executeFind
      1. org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
      2. org.springframework.orm.hibernate.HibernateTemplate.executeFind(HibernateTemplate.java:341)
      2 frames
    5. com.atlassian.bamboo
      BuildResultsSummaryHibernateDao.findResultsSummaries
      1. com.atlassian.bamboo.resultsummary.BuildResultsSummaryHibernateDao.findResultsSummaries(BuildResultsSummaryHibernateDao.java:409)
      1 frame