SonarQube process terminated with exit value [es]: 137

I want to install sonar on my vps (linux x86_64 debian 9), but when I run this cdm: ./ sonar.sh console, I have the following log:

Running SonarQube...
wrapper  | --> Wrapper Started as Console wrapper  | Launching a JVM...
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
jvm 1    |
jvm 1    | 2017.12.14 18:45:28 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /etc/sonarqube/temp
jvm 1    | 2017.12.14 18:45:28 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
jvm 1    | 2017.12.14 18:45:29 INFO  app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from     [/etc/sonarqube/elasticsearch]: /etc/sonarqube/elasticsearch/bin/elasticsearch -Epath.conf=/etc/sonarqube/temp/conf/es
jvm 1    | 2017.12.14 18:45:29 INFO  app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1    | 2017.12.14 18:45:29 WARN  app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 137
jvm 1    | 2017.12.14 18:45:29 INFO  app[][o.s.a.SchedulerImpl] Process [es] is stopped
jvm 1    | 2017.12.14 18:45:29 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped
jvm 1    | 2017.12.14 18:45:29 INFO  app[][o.e.p.PluginsService] no modules loaded
jvm 1    | 2017.12.14 18:45:29 INFO  app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
jvm 1    | 2017.12.14 18:45:30 WARN  app[][i.n.u.i.MacAddressUtil] Failed to find a usable hardware address from the network interfaces; using random bytes: 05:2b:7f:2f:de:90:ca:4a
wrapper  | <-- Wrapper Stopped

The idea why the server shuts down immediately? I searched for [es]: 137, but didn't find anything :(

+5
source share
2 answers

This is a memory problem. We encounter such problems when we run Sonar as a container, and we try to limit the maximum available memory for a Sonar container to below 2 GB or RAM.

Sonar runs under the hood of Elasticsearch, which requires a lot of memory, so in this case, I suggest assigning more than 2 GB for Sonar.

ES_JAVA_OPTS 2 ( ), , Sonar , .

, , , : https://github.com/10up/wp-local-docker/issues/6

, , - Sonar ().

+3

SonarQube Process exited with exit value [es]: 1.

, , root. @Varun .

root@hostname # useradd sonar
root@hostname # chown -R sonar:sonar /opt/sonarqube
root@hostname # su - sonar
sonar@hostname # cd /opt/sonarqube
sonar@hostname # bin/linux-x86-64/sonar.sh console

/opt/sonarqube, , , .

0

Source: https://habr.com/ru/post/1690863/


All Articles