aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-process/src
diff options
context:
space:
mode:
authorStephane Gamard <stephane.gamard@searchbox.com>2014-07-18 12:31:33 +0200
committerStephane Gamard <stephane.gamard@searchbox.com>2014-07-18 12:38:09 +0200
commit53dfc28036238e9ac07cfa90ff29ee60ee00edbb (patch)
tree6bc7fbbee06ea858138aa5e17e2048d9bb3b0f1b /server/sonar-process/src
parente75cc2d845fd0fac42797b460063a1827533956f (diff)
downloadsonarqube-53dfc28036238e9ac07cfa90ff29ee60ee00edbb.tar.gz
sonarqube-53dfc28036238e9ac07cfa90ff29ee60ee00edbb.zip
SONAR-5408 - Reduced JMX connection trials to 5
Diffstat (limited to 'server/sonar-process/src')
-rw-r--r--server/sonar-process/src/main/java/org/sonar/process/ProcessWrapper.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-process/src/main/java/org/sonar/process/ProcessWrapper.java b/server/sonar-process/src/main/java/org/sonar/process/ProcessWrapper.java
index cb9134157cb..c1b1ff5067b 100644
--- a/server/sonar-process/src/main/java/org/sonar/process/ProcessWrapper.java
+++ b/server/sonar-process/src/main/java/org/sonar/process/ProcessWrapper.java
@@ -87,7 +87,7 @@ public class ProcessWrapper extends Thread {
private ProcessMXBean waitForJMX(String name, Integer port) {
Exception exception = null;
- for (int i = 0; i < 10; i++) {
+ for (int i = 0; i < 5; i++) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
@@ -164,10 +164,10 @@ public class ProcessWrapper extends Thread {
private String getPropertyFile() {
File propertyFile = new File(FileUtils.getTempDirectory(), UUID.randomUUID().toString());
- if (!propertyFile.canWrite()) {
- throw new IllegalStateException("Cannot write temp propertyFile to '" +
- propertyFile.getAbsolutePath() + "'");
- }
+// if (!propertyFile.canWrite()) {
+// throw new IllegalStateException("Cannot write temp propertyFile to '" +
+// propertyFile.getAbsolutePath() + "'");
+// }
try {
Properties props = new Properties();
for (Map.Entry<String, String> property : properties.entrySet()) {