3 Replies Latest reply on Jun 5, 2011 10:32 PM by Nick Belaevski

    how to handle OutOfMemory error, avoid jboss restart

    Dave Chen Master

      When OutOfMemory(Java heap) occurs, how to handle it to avoid JBoss restart?

      I noticed that: once OutOfMemory(Java heap) occurs, GC exception follows. It means GC does not

      have enough memory to perform garbage collection.


      For web application, when a session times out, its heap memory needs to be garbage collected.

      Is there a way to ensure enough memory for GC?