Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
christian-hofstetter opened this issue Mar 28, 2017 · 4 comments
Open

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

christian-hofstetter opened this issue Mar 28, 2017 · 4 comments

Comments

@christian-hofstetter
Copy link

christian-hofstetter commented Mar 28, 2017

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
Copy link

sb00020 commented Aug 15, 2017

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

@pirm-in
Copy link

pirm-in commented Oct 23, 2017

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

@connorads
Copy link

Did anyone manage to find a solution?

@Afrowson
Copy link

Afrowson commented Jul 5, 2018

well I'm there as well...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants