2

I have a fresh install of Debian 8 on a VM with 4GB RAM. I installed SonarQube (using the native package). When I try to start with the supplied script, the log says the following:

--> Wrapper Started as Daemon
Launching a JVM...
JVM exited while loading the application.
GC Warning: Out of Memory!  Returning NIL!
Exception in thread "main" GC Warning: Out of Memory!  Returning NIL!
java.lang.OutOfMemoryError
*** Got java.lang.NoClassDefFoundError: gnu.gcj.runtime.NameFinder while trying to print stack trace.
JVM Restarts disabled.  Shutting down.
<-- Wrapper Stopped

I tried increasing the -Xmx and -Xms values in the start script to no effect.

agabrys
  • 8,728
  • 3
  • 35
  • 73
hombrus
  • 95
  • 5

1 Answers1

5

From your log it seems you're using default java aka gnu.gcj.

You should install openjdk7 or openjdk8

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
Henri Gomez
  • 106
  • 3