"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

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:

http://confluence.atlassian.com/display/CONFKB/Confluence+Crashes+Due+to+%27java.lang.OutOfMemoryError+PermGen+space%27+Error

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

487 views 19 10
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