-
Bug
-
Resolution: Fixed
-
High
-
6.3.15, 6.4.14, 7.2.13, 7.6.5, 7.7.3, 8.11.0
-
6.03
-
65
-
Severity 2 - Major
-
50
-
-
Summary
Jira automated backup might cause OutOfMemoryError (OOM) due to large dataset generated during export.
For production use or large JIRA application installations, it is strongly recommended that you use native database-specific tools instead of the XML backup service. XML backups are not guaranteed to be consistent, as the database may be updated during the backup process. Inconsistent backups are created successfully without any warnings or error messages, but fail during the restore process. Database-native tools offer a much more consistent and reliable means of storing data.
Steps to Reproduce
- Run Backup service and export data into xml.
Expected Results
System is stable
Actual Results
Jira has memory pressure which causes poor performance or leads to OutOfMemoryError.
The below exception is thrown in the atlassian-jira.log file:
2018-04-17 01:02:10,461 Caesium-1-4 ERROR anonymous Backup Service [c.a.j.bc.dataimport.DefaultExportService] Error during Active Objects Backup com.atlassian.activeobjects.spi.ActiveObjectsImportExportException: There was an error during import/export with <unknown plugin>: at com.atlassian.activeobjects.backup.ImportExportErrorServiceImpl.newImportExportSqlException(ImportExportErrorServiceImpl.java:26) at com.atlassian.dbexporter.jdbc.JdbcUtils.withNoAutoCommit(JdbcUtils.java:57) at com.atlassian.dbexporter.exporter.DataExporter$1.call(DataExporter.java:52) at com.atlassian.dbexporter.exporter.DataExporter$1.call(DataExporter.java:49) at com.atlassian.dbexporter.jdbc.JdbcUtils.withConnection(JdbcUtils.java:28) at com.atlassian.dbexporter.exporter.DataExporter.export(DataExporter.java:49) at com.atlassian.dbexporter.DbExporter.exportData(DbExporter.java:49) at com.atlassian.activeobjects.backup.ActiveObjectsBackup.save(ActiveObjectsBackup.java:110) at com.atlassian.jira.bc.dataimport.DefaultExportService.exportActiveObjects(DefaultExportService.java:184) ... Caused by: java.lang.OutOfMemoryError: Java heap space at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3512) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3459)
Notes
- See related KB: OutOfMemory Error or Poor Performance due to XML Backup
Workaround
Delete Backup service, see docs: Automating JIRA application backups
- relates to
-
JRASERVER-45917 XML backup or restore of AO tables fails to complete due to Jira running out of heap space
-
- Gathering Impact
-
-
RAID-3141 Loading...
- causes
-
JPERF-1085 Loading...
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...