diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-01-07 14:18:09 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-01-13 13:42:43 +0100 |
commit | 10ddbf28d97a7b1626706efdf2cb88893b34ed4a (patch) | |
tree | 01341f959d884181859889ca60aedccbecdd84e1 /server | |
parent | 2b5701d42025b8cce2d192b494f61e91e591e591 (diff) | |
download | sonarqube-10ddbf28d97a7b1626706efdf2cb88893b34ed4a.tar.gz sonarqube-10ddbf28d97a7b1626706efdf2cb88893b34ed4a.zip |
SONAR-7168 fix Main JVM and ES JVM sharing same space of sharedMemory
Main JVM is using sharedMemory when sonar.enableStopCommand=true is passed to command line (used by orchestrator to stop SQ) and in such case, it used to use the same sharedMemory space as the first child process it started
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java b/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java index c86748780f7..2655bb01349 100644 --- a/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java +++ b/server/sonar-process-monitor/src/main/java/org/sonar/process/monitor/Monitor.java @@ -48,7 +48,7 @@ public class Monitor { private RestartRequestWatcherThread restartWatcher; @CheckForNull private TerminatorThread terminator; - static int nextProcessId = 0; + static int nextProcessId = 1; Monitor(JavaProcessLauncher launcher, SystemExit exit) { this.launcher = launcher; |