java.lang.OutOfMemoryError: Java heap space

hsqldb | wason | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    OutOfMemoryError when writing to cachedTable

    hsqldb | 8 years ago | wason
    java.lang.OutOfMemoryError: Java heap space

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at org.hsqldb.Result.add()
    2. HSQLDB
      jdbcConnection.prepareStatement
      1. org.hsqldb.Result.add(Unknown Source)
      2. org.hsqldb.Result.newPrepareResponse(Unknown Source)
      3. org.hsqldb.Session.execute(Unknown Source)
      4. org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source)
      5. org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
      5 frames
    3. Commons DBCP
      PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement
      1. org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:248)
      2. org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:302)
      2 frames
    4. Hibernate
      AbstractEntityPersister.insert
      1. org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:534)
      2. org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:116)
      3. org.hibernate.id.insert.AbstractSelectingDelegate.performInsert(AbstractSelectingDelegate.java:54)
      4. org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2186)
      5. org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2666)
      5 frames
    5. Hibernate
      EntityIdentityInsertAction.execute
      1. org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:71)
      1 frame
    6. Hibernate
      ActionQueue.execute
      1. org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
      1 frame
    7. Hibernate
      SessionImpl.saveOrUpdate
      1. org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:321)
      2. org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)
      3. org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:130)
      4. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210)
      5. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195)
      6. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:117)
      7. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
      8. org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:534)
      9. org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:526)
      10. org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:522)
      10 frames