Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Error occurred during initialization of VM Failed to allocate initial heap.

I'm trying to start a confluence server for my Atlassian stack, but every time I try and start it nothing happens. After poking around in the logs I noticed that every startup triggers this error:

Error occurred during initialization of VM
Failed to allocate initial heap.

Is there a fix for this? I've never been able to access the panel (since this error has occurred every time).

1 answer

1 accepted

1 vote
Answer accepted

Hello there, @Quinn H. !

As I understand, your Confluence installation never starts. Looking at the excerpt you provided, I can tell you that I have seen this issue before.

The cause for this issue, last time, was that no notation was used when typing out the desired amount of heap for the instance.

We can check if the same situation applies to your instance. For such, we can do the following:

  1. Make sure no Confluence process is running
  2. Find <confluence-install> folder
  3. There, look for the /bin folder
  4. Within this file, find the section that reads CATALINA_OPTS="-Xms1024m -Xmx1024m -XX:+UseG1GC $CATALINA_OPTS"  or similar to this
  5. Look for the values of Xms and Xmx
  6. Check if the value has the m notation (as in megabytes) after the number


Now, some advice on memory allocation. For testing purposes, 1024m (or 1GB for that matter) should be enough. However, for real-world usage, I advise you to try and increase this value to at least 2048 (2GB) or more, depending on your user volume, add-on usage and intensity of use. Think of intensity as how many users are actively typing pages at the same, add-ons doing their job and people actually sifting through all your pages.

Also, never allocate all your machine’s RAM to Confluence heap. We need to have some working space for the hosting operating system to breathe. Again, how much you leave for your operating system depends on what else runs in it and how much it uses in and idle and working state.

If you want to take a look at our documentation on memory allocation for Confluence, here is the link:


Let us hear from you!l Looking forward to your reply.

Thank you very much! Increasing the heap to 1,500m solved the issue.

Hello again @Quinn H. !

Glad to know that this solved your issue. Come share with us again!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence Cloud

Please tell us how you use Confluence space settings

👋 Hi there, a few of us at Atlassian would love to learn about how you use "space settings" functionality in Confluence. A facelift to the space settings is long overdue and we want to start with im...

567 views 15 9
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you