harbur / docker-sonarqube

Dockerized SonarQube web server
https://registry.hub.docker.com/u/harbur/sonarqube/
MIT License
77 stars 47 forks source link

GC Warning: Out of Memory! Returning NIL! #19

Open christian-hofstetter opened 7 years ago

christian-hofstetter commented 7 years ago

Hi there,

Im getting a out of memory response (GC Warning: Out of Memory! Returning NIL!). Found the following info:

You could select proper JVM in $SONAR_HOME/conf/wrapper.conf by editing wrapper.java.command property ie To use Java 7 wrapper.java.command=/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java To use Java 8 wrapper.java.command=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java

Source

Docker compose command:

ubuntu@asdf:~/sonar$ sudo docker-compose up
Starting onar_postgresql_1
Starting sonar_sonarqube_1
Attaching to ssonar_postgresql_1, sonar_sonarqube_1
postgresql_1  | 2017-03-28 09:54:18 GMT ERROR:  role "sonar" already exists
postgresql_1  | 2017-03-28 09:54:18 GMT STATEMENT:  CREATE USER sonar WITH SUPERUSER;
postgresql_1  |
postgresql_1  | 2017-03-28 09:54:19 GMT ERROR:  database "sonar" already exists
postgresql_1  | 2017-03-28 09:54:19 GMT STATEMENT:  CREATE DATABASE sonar OWNER sonar TEMPLATE DEFAULT;
postgresql_1  |
postgresql_1  | 2017-03-28 09:54:19 GMT LOG:  database system was shut down at 2017-03-28 09:54:19 GMT
postgresql_1  | 2017-03-28 09:54:19 GMT LOG:  database system is ready to accept connections
postgresql_1  | 2017-03-28 09:54:19 GMT LOG:  autovacuum launcher started
sonarqube_1   | Starting sonarqube...
sonarqube_1   | Starting SonarQube...
sonarqube_1   | Failed to start SonarQube.
sonarqube_1   | <-- Wrapper Stopped
sonarqube_1   | --> Wrapper Started as Daemon
sonarqube_1   | Launching a JVM...
sonarqube_1   | JVM exited while loading the application.
sonarqube_1   | GC Warning: Out of Memory!  Returning NIL!
sonarqube_1   | GC Warning: Out of Memory!  Returning NIL!
sonarqube_1   | GC Warning: Out of Memory!  Returning NIL!
sonarqube_1   | *** Catastrophic failure while handling uncaught exception.
sonarqube_1   | JVM Restarts disabled.  Shutting down.
sonarqube_1   | <-- Wrapper Stopped

Docker version:

ubuntu@sonarqube2-race:~/swisscom-race-sonar$ sudo docker version
Client:
 Version:      17.03.1-ce
 API version:  1.27
 Go version:   go1.7.5
 Git commit:   c6d412e
 Built:        Fri Mar 24 00:45:26 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.03.1-ce
 API version:  1.27 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   c6d412e
 Built:        Fri Mar 24 00:45:26 2017
 OS/Arch:      linux/amd64
 Experimental: false
sb00020 commented 7 years ago

I'm also having this error. Can the memory settings be changed in the docker file?

pirm-in commented 7 years ago

I'm also having this error. Any news on this one?

connorads commented 6 years ago

Did anyone manage to find a solution?

Afrowson commented 6 years ago

well I'm there as well...