Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

OutOfMemoryError: GC overhead limit exceeded

...

java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocate. Out of swap space?

This message is essentially saying that the native objects do not have enough memory to use. This is usually because you have allocated too much memory to your heap thereby reducing the amount that is available for native objects. SeeĀ this article.

The solution is to reduce the amount of heap memory that you have allocated. For example if you have set -Xmx4096, then you should consider reducing this to -Xmx2048m.

Note

Remember that if you are using a 32bit JVM you cannot allocate more than -Xmx2048m for linux (and less than that for windows). Using a 64 bit JVM can resolve this problem.