Advice on G1 garbage collector use for Confluence 5?

With Confluence 5 (and likely all other Atlassian products) requiring Java 7, are there any recommendations for or against using the relatively new G1 Garbage Collector that ships with Java 7? I'd like to move to using it since we're using about 6 GB of heap (one of the use cases that the link describes), but I'd appreciate input and if there are any data from tests that have been run before putting it into use. If you're wondering what JVM flag to specify, it's -XX:+UseG1GC

4 answers

1 accepted

This widget could not be displayed.

Hi Jim,

I haven't had time to test the new G1 collector yet but I have high hopes that it will improve the throughput of GC in large Confluence instances, but it seems the most important feature is to be able to specify the pause time and the collector will try to keep to it. However, it is a new innovation so I would recommend testing it out before deploying it in production but it does appear like the CMS collector without the required tuning so it could well help when instances are struggling with GC issues.

All the best,
John

Hi John,

Thanks for the answer! It would be great to see a report comparing G1 to the default garbage collector similar to a report that was written a while back comparing Confluence to Clustered Confluence. I've tried to look for it recenly but can't find it. Although we don't use Clustered Confluence, maybe using G1 would help in situations that might otherwise need Clustered Confluence.

Thanks,

Jim

This widget could not be displayed.

I keep a GC history on our large financial clustered instance. When I roll out 5.2 on 1.7 in the next month, I intend on testing G1, as GC is one of the things that plagues our instances. All nodes Full GC at once and.. yea.

Object creation in Confluence is off the hook. Add a lot of MS-Office users and the corresponding renders and it gets ugly fast. I have never seen a jprofiler report quite like it. I am glad they started rewriting parts of the office connector, some of the 3rd party libraries looked like CS Student projects (example: Jxcel).

This widget could not be displayed.

There's a feature request about this at https://jira.atlassian.com/browse/JRA-38956

This widget could not be displayed.

Hi Matt,

Thanks for the update!  This is great news to hear.

 

Thanks,

Jim

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 7 hours ago in Europe

ABUG-20 Livestream: The 20th Atlassian Belgian User Group (including a Summit 2018 Recap)

You can't/couldn't make it to our User Group today? Don't worry, we'll be live streaming and recording the event for your sake. Comments, questions, basically any reactions can be posted below! New...

35 views 0 0
View post

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