Jira installer presenting an OutOfMemoryError during an upgrade.


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Jira installer having OutOfMemoryError during an upgrade. The following error will be logged in the install4jError.log:


Exception:

java.lang.OutOfMemoryError: Java heap space
    at java.base/java.io.WinNTFileSystem.list(Native Method)
    at java.base/java.io.File.normalizedList(Unknown Source)
    at java.base/java.io.File.listFiles(Unknown Source)


Cause

The Jira installer is built using install4j and it allocates by default 2GB of memory, which may not be enough when updating a large Jira environment.

Solution

You can pass an install4j parameter that will increase the installer heap memory size: -J-Xmx5000m

.\atlassian-jira-software-8.20.16-x64.exe -J-Xmx5000m

 Adjust the Xmx value according to your system.


Last modified on Feb 15, 2023

Was this helpful?

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