This is not something I’ve hit before, however this is my first time installing Confluence 5.4.2 x32 on a Exigent VPS account. Post the installation, I got the message indicating that the service has started and you should connect to it to finish the configuration.
However, nothing was found to be running on the default port of 8090, so I checked the catalina.out file in the logs folder to determine what was written. It was showing the lines below;
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
At this point I figured I needed to change the amount of memory being allocated to java during startup so I went looking to see where this was being set from. Turns out its in the setenv.sh file in the bin folder.
On the first line of the file, change the -Xmx512m to something a little smaller, if your running on a VPS that doesn’t have enough available memory to let it have 512Mb of ram. Save the change and fire it up via “start-confluence.sh” and it should load up fine.
EDIT: It’s safe to say that my low end VPS account cannot really run the Confluence install, as it failed to create the database in MySQL and put the box under serious load due to all memory being consumed, which subsequently pushed out the load average. See below;
top – 09:56:16 up 45 days, 16:50, 3 users, load average: 70.49, 37.55, 15.18
Tasks: 70 total, 3 running, 67 sleeping, 0 stopped, 0 zombie
Cpu(s): 12.1%us, 87.9%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1048576k total, 1048576k used, 0k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached
I gave it a go nonetheless 🙂