Upgrade from 6.2 to 6.2.7 exhausts VM memory

I'm running a JIRA instance using PostgreSQL. It's been operational for 3 years. During upgrade from 6.2 to 6.2.7 the VM runs out of memory (Xm=1024m, same issue with 1.5GB)

I had to roll back to Jira 6.2.

Any suggestions?

********************************************************************************

JIRA 6.2.7 build: 6265 started. You can now access JIRA through your web browser.

*********************************************************************************

2014-06-25 15:30:13,774 localhost-startStop-1 INFO      [atlassian.jira.upgrade.UpgradeManagerImpl] Detected that an upgrade is needed; existing data at build 6252

2014-06-25 15:30:13,775 localhost-startStop-1 INFO      [atlassian.jira.upgrade.UpgradeManagerImpl] Exporting the existing data..

2014-06-25 15:30:17,827 Modification Check:thread-1 INFO      [atlassian.jira.startup.JiraStartupLogger]

___ Modifications ___________________________

     Modified Files                                : jira-application.properties

     Removed Files                                 : None

2014-06-25 15:30:26,789 localhost-startStop-1 INFO      [jira.bc.dataimport.DefaultExportService] Data export completed in 12972ms. Wrote 598779 entities to export in memory.

2014-06-25 15:30:26,790 localhost-startStop-1 INFO      [jira.bc.dataimport.DefaultExportService] Attempting to save the Active Objects Backup

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "hipchat-client-io:thread-3"

Exception in thread "httpclient-io:thread-9" Exception in thread "hipchat-client-io:thread-1" Exception in thread "hipchat-client-io:thread-6" java.lang.OutOfMemoryError: Java heap space

java.lang.OutOfMemoryError: Java heap space

Exception in thread "httpclient-io:thread-5" java.lang.OutOfMemoryError: Java heap space

java.lang.OutOfMemoryError: Java heap space

1 answer

1 accepted

1.5G should be enough, but, depends how many addons you are using, they do accumulate and get bigger over time. odd it happened right after the export.

Given it happened on a hipchat client thread, disable/uninstall anything relating to hipchat to start with, perhaps something broke/isnt compatible with the post-upgrade state.

1) Disable chunky addons like Agile to get more Heap.

2) Perhaps if you disable the export it may help (see https://confluence.atlassian.com/display/JIRA/Disabling+Auto-Export). Of course, you should only attempt this with a full JIRA_HOME and db backup, in case it breaks.

Thank you Andy. I haven't been able to test out your tips, but will report back when I have. Since we do daily database backups I'm thinking the Auto Export isn't that important for us, hence I will turn it off.

Disabling XML backups allowed me to successfully upgrade JIRA.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,083 views 13 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot