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).
Hello there, @mrmastersword !
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:
- Make sure no Confluence process is running
- Find <confluence-install> folder
- There, look for the /bin folder
- Within this file, find the section that reads CATALINA_OPTS="-Xms1024m -Xmx1024m -XX:+UseG1GC $CATALINA_OPTS" or similar to this
- Look for the values of Xms and Xmx
- 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.
I’ve got a couple of questions for you. Do you write technical documentation? What about technical documentation that references code and files from GitHub? In this article you will learn how to in...
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