Jira server crashes with OutofMemory Java heap space error

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

Symptoms include:

  1. JIRA application crashes
  2. The Mail Queue is not flushed, and JIRA applications are no longer sending out email notifications.
  3. The Activity stream or search is not updated with recent content
  4. Webhooks no longer update on issue events

The following appears in the atlassian-jira.log:

java.lang.OutOfMemoryError: Java heap space

Cause

The JVM running JIRA applications has hit an OutOfMemory Error (OOME). This is thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and no more memory can be made available by the garbage collector.

After an OutOfMemory error, the Java Virtual Machine (JVM) will likely be in an unstable state and hence it is essential to restart your JIRA applications immediately.

Resolution

If you receive an OutOfMemory Error, follow these instructions to increase the memory available to JIRA applications and also to enable logging for garbage collection:

  1. Are you in the right place? This page refers to Heap Space Memory issues, as indicated by the snippet in the Symptoms description. There are a set of other memory related problems such as the following.

    (info) Please use the appropriate KB based on the error in the logs.
  2. Stop your JIRA applications.
  3. Increase the maximum memory available to the JVM as per our Increasing JIRA application memory docs. We recommend small increases of 256m at a time or 512m for larger instances.
  4. Enable Garbage Collection (GC) logging as per Troubleshoot Jira Server performance with GC logs.
  5. Start your JIRA applications so that the changes to memory and GC logging are in effect.

Our Troubleshoot performance issues in Jira server KB contains further information on troubleshooting these problems. As a follow-up, proceed with the steps below for a root cause analysis:

Last modified on Sep 25, 2019

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.