mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
13.16.2008 0118a87e1e0da7d5cef6dd10dee7d6e70324d649
Fix for issue 3328 (Server is started with options "-client -Xms8m" when started by status-panel)

The fix consists on removing the OPENDS_JAVA_ARGS value that is set by the scripts when launching the client utilities (setup, upgrade, status-panel) when we create the new start process.
1 files modified
2 ■■■■■ changed files
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/ServerController.java 2 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/ServerController.java
@@ -139,6 +139,7 @@
      ProcessBuilder pb = new ProcessBuilder(args);
      Map<String, String> env = pb.environment();
      env.put(SetupUtils.OPENDS_JAVA_HOME, System.getProperty("java.home"));
      env.remove(SetupUtils.OPENDS_JAVA_ARGS);
      try {
        Process process = pb.start();
@@ -311,6 +312,7 @@
      pb.directory(installation.getBinariesDirectory());
      Map<String, String> env = pb.environment();
      env.put(SetupUtils.OPENDS_JAVA_HOME, System.getProperty("java.home"));
      env.remove(SetupUtils.OPENDS_JAVA_ARGS);
      // Upgrader's classpath contains jars located in the temporary
      // directory that we don't want locked by the directory server