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.

  • 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.
    via by Adam Myatt,
  • 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.
    via by Adam Myatt,
    • 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)
    No Bugmate found.