Jira installer presenting an OutOfMemoryError during an upgrade.
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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:
1
2
3
4
5
6
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
1
.\atlassian-jira-software-8.20.16-x64.exe -J-Xmx5000m
Adjust the Xmx value according to your system.
Was this helpful?