OutOfMemory due to Remote API
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the server and data center platforms.
JIRA crashes or behaves unpredictably. Logs contain errors like:
java.lang.OutOfMemoryError: Java heap space
There are two causes:
- The SOAP
getProjectscall loads a huge object graph, particularly when there are many users in JIRA, and thus can cause OutOfMemoryErrors. See JRASERVER-10828.
- A Remote API script that creates an infinite loop, stack overflow, or a highly demanding set of rapid requests can be the culprit.
To assess which script may be causing performance issues, add access logging and correspond to the out of memory errors.
- As a temporary measure, increase JIRA's Heap Space allocation.
- Ensure no locally run SOAP clients use
getProjects. Use getProjectsNoSchemes instead.
- Disable or modify scripts as appropriate.
Last modified on Jun 21, 2022
Was this helpful?Yes Provide feedback about this article
Powered by Confluence and Scroll Viewport.