Error updating upm ([engine.jdbc.spi.SqlExceptionHelper] logExceptions Out of memory)



I received an error while trying to update upm on my Confluence 6.3.1 server from version 2.2.4 to version 2.2.5.

Below is the tail of atlassian-confluence.log when this happened.



2017-08-25 15:46:29,290 INFO [UpmAsynchronousTaskManager:thread-4] [atlassian.plugin.manager.DefaultPluginManager] updatePlugin Updating plugin 'com.atlassian.upm.atlassian-universal-plugin-manager-selfupdate-plugin' from version '2.22.4' to version '2.22.4'
2017-08-25 15:46:29,291 INFO [UpmAsynchronousTaskManager:thread-4] [atlassian.plugin.manager.DefaultPluginManager] broadcastPluginDisabling Disabling com.atlassian.upm.atlassian-universal-plugin-manager-selfupdate-plugin
2017-08-25 15:46:33,846 ERROR [pool-919-thread-1] [engine.jdbc.spi.SqlExceptionHelper] logExceptions Out of memory (Needed 8112696 bytes)
-- url: /rest/plugins/self-update/1.0/ | referer: | traceId: bc47e40aeec0cd3c | userName: X
2017-08-25 15:46:33,846 WARN [pool-919-thread-1] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions:
->[PluginReadWriteTx]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #239037332)
-- url: /rest/plugins/self-update/1.0/ | referer: | traceId: bc47e40aeec0cd3c | userName: X


A few more questions:

  1. Isn't it odd that the log is saying "from version '2.22.4' to version '2.22.4'"
  2. Does this have to do with inno_db_log_file_size? I'm 100% sure I fixed that. show variables on my RDS instance returns: innodb_log_file_size=26214400

Here is my Confluence server information

2 answers

1 accepted

1 vote
Answer accepted

Not your innodb log file, it seems to need more heap memory in the JVM.

Thank you,

But wouldn't it have shown in System Information?

System info when the error occurred:

  • Maximum Heap Size 1024 MB
  • Total Allocated Memory 1024 MB
  • Used Memory 556 MB
  • Free Allocated Memory 467 MB
  • Total Free Memory 467 MB

And here's my system memory:

total used free:
3950 2427 312

I have several gigs of disk space, if that's somehow relevant.

It could be that the memory drops only while updating but bounces back, I tried doing this a few times and refreshing System Information. I managed to get the free heap down to 27%. Maybe it goes even lower but I didn't manage to grab it and I don't wanna go just yet into serious profiling.

But still, how did it not manage to allocate 7.7 MB?

No, system info is just a snapshot taken as the page renders. 

It may be just that one process that's going too high.  Remember it allocates in chunks, not the whole lot in one go.

Is it possible to temporarily increase your heap size by say .5G?  The -Xmx setting in

1 vote
Ann Worley Atlassian Team Aug 28, 2017

@Jad Baz Please see my comment on Error while updating upm plugin (logExceptions Out of memory). Please update this thread to let us know the results.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

264 views 2 10
Read article

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