Confluence server does not seem to start after installation on Ubuntu
Asked by Sing Kwan Ng:

Hi,

Been trying to get confluence server working on an Ubuntu VM (17.10) running on Google cloud compute. I followed the instructions here: <https://confluence.atlassian.com/doc/installing-confluence-on-linux-143556824.html> and installation showed no errors. However, I tried to connect (through SSH on my local) to http://localhost:8090 but there was a connection error. Tried checking netstat, and it seems its not running if not it should show up for port 8090?

![image.png](/t5/image/serverpage/image-id/22477i249A34AA5524EEFF/image-size/large?v=v2&px=999 "image.png")

Not to sure what to do now. I did another check as described by running this command = ps -ef \| grep confluence and it does not seem to be running. Also tried restarting it again by running sudo /etc/init.d/confluence start and again no errors but still confluence doesn't seem to be live.

![image.png](/t5/image/serverpage/image-id/22478i11382E5B0587AE9D/image-size/large?v=v2&px=999 "image.png")

Any help will be greatly appreciated! Been struggling to get this up and running....

SK


Answers:
author: Daniel Eads {unmonitored account}
body: Thanks for including screenshots! Very useful for seeing what's going on.

Can you take a look at the application log file? It's getting so far as starting so at least the init script is pointing at the right place. The application log will hold more information about why it's not staying up.

According to your screenshot, this should be at **/opt/atlassian/confluence/logs/catalina.out** - this will just grab the last few lines of the file:

```
sudo tail -n 15 /opt/atlassian/confluence/logs/catalina.out
```

comments: author: Sing Kwan Ng
body: Thanks btw for helping out! Here is the results:

# Native memory allocation (mmap) failed to map 1073741824 bytes for committing reserved memory.  
# An error report file with more information is saved as:  
# /tmp/hs_err_pid28240.log  
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 1073741824, 0) failed; error='Cannot allocate memory' (errno=12)  
#  
# There is insufficient memory for the Java Runtime Environment to continue.  
# Native memory allocation (mmap) failed to map 1073741824 bytes for committing reserved memory.  
# An error report file with more information is saved as:  
# /tmp/hs_err_pid28337.log  
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 1073741824, 0) failed; error='Cannot allocate memory' (errno=12)  
#  
# There is insufficient memory for the Java Runtime Environment to continue.  
# Native memory allocation (mmap) failed to map 1073741824 bytes for committing reserved memory.  
# An error report file with more information is saved as:  
# /tmp/hs_err_pid28473.log

I would assume it means not enough memory for JRE?


author: Nic Brough -Adaptavist-
body: You're right, the message "There is insufficient memory " means exactly what it says.

Reduce the memory limit to something that fits inside the physical memory you have on the machine, remembering to leave space for the operating system as well


author: Sing Kwan Ng
body: It works thanks guys! Getting another error now but I think I'll create another question for it.


Tags: confluence-server

server