"error while loading plugins" "java heap space" while trying to view/install plugins

What param to tweak?

Been impossible to see/upgrade/install plugins lately.

3 answers

1 accepted

2 votes
Answer accepted
What Java memory settings your Confluence instance run with? If they the memory allocated for your JVM is not big (e.g. below 512MB for heap size and 256MB for permgen size), I would recommend increasing your heap memory (-Xmx settings by 100m or so) and your permgen size by 50m or so. See http://confluence.atlassian.com/display/DOC/Fix+Out+of+Memory+Errors+by+Increasing+Available+Memory It's also recommended to see if you have the latest version of Universal Plugin Manager and if not, upgrade it.

The error message specifically says heap, so it seems like heap space, but in general with plugin loading you see PermGen errors. make sure it's not this:


our settings: -Xms256m -Xmx512m -XX:MaxPermSize=256m ..

How does one determine optimum size for these? We don't have that many users, but a relatively large set of plugins

<th colspan="2" width="90%">Java VM Memory Statistics</th>
Heap Memory
16 % Free
Maximum Heap Size 488 MB
Total Allocated Memory 488 MB
Used Memory 411 MB
Free Allocated Memory 77 MB
Total Free Memory 77 MB
Permanent Generation Memory
32 % Free
Maximum PermGen 256 MB
Used PermGen 174 MB
I normally set both -Xms1024m and -Xmx1024m. Setting minimum and maximum to the same value means the app server grabs 1GB for the heap and doesn't have to worry about resizing.

Did you recently install or upgrade a plugin (UPM in particular)? I got this behavior after updating the Universal Plugin Manager to the latest version. I restored a backup and haven't had a problem since I've been avoiding that particular plugin upgrade.

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...

1,592 views 4 13
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