diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-08-28 16:02:35 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-08-28 16:02:35 +0200 |
commit | 9dda0bbeab053cc4a09f7d54176d074179fdf9e4 (patch) | |
tree | 423c17f05c9811a475bcd4329b31a475c16e8937 /sonar-application/src | |
parent | d234a07754bf92ff465816eb2dcb3562411c8d5f (diff) | |
download | sonarqube-9dda0bbeab053cc4a09f7d54176d074179fdf9e4.tar.gz sonarqube-9dda0bbeab053cc4a09f7d54176d074179fdf9e4.zip |
SONAR-4898 try to fix ping monitoring
Sometimes child autokills because it did not receive pings in the last 30 seconds. I hope it comes from the parent process that is slow to start monitoring (send pings).
Diffstat (limited to 'sonar-application/src')
-rw-r--r-- | sonar-application/src/main/java/org/sonar/application/App.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-application/src/main/java/org/sonar/application/App.java b/sonar-application/src/main/java/org/sonar/application/App.java index 784d75ef299..23293a2efed 100644 --- a/sonar-application/src/main/java/org/sonar/application/App.java +++ b/sonar-application/src/main/java/org/sonar/application/App.java @@ -70,7 +70,7 @@ public class App implements ProcessMXBean { .addClasspath("./lib/common/*") .addClasspath("./lib/search/*"); if (elasticsearch.execute()) { - monitor.registerProcess(elasticsearch); + monitor.monitor(elasticsearch); if (elasticsearch.waitForReady()) { logger.info("search server is up"); @@ -92,7 +92,7 @@ public class App implements ProcessMXBean { server.addClasspath(driverPath); } if (server.execute()) { - monitor.registerProcess(server); + monitor.monitor(server); if (server.waitForReady()) { success = true; logger.info("web server is up"); |