res.put("-XX:CMSInitiatingOccupancyFraction=", "75");
res.put("-XX:+UseCMSInitiatingOccupancyOnly", "");
res.put("-XX:+AlwaysPreTouch", "");
- res.put("-server", "");
res.put("-Xss", "1m");
res.put("-Djava.awt.headless=", "true");
res.put("-Dfile.encoding=", "UTF-8");
assertThat(esConfig.getPort()).isEqualTo(9001);
assertThat(esConfig.getEsJvmOptions().getAll())
// enforced values
- .contains("-XX:+UseConcMarkSweepGC", "-server", "-Dfile.encoding=UTF-8")
+ .contains("-XX:+UseConcMarkSweepGC", "-Dfile.encoding=UTF-8")
// default settings
.contains("-Xms512m", "-Xmx512m", "-XX:+HeapDumpOnOutOfMemoryError");
File esConfDir = new File(tempDir, "conf/es");
assertThat(esConfig.getPort()).isEqualTo(9001);
assertThat(esConfig.getEsJvmOptions().getAll())
// enforced values
- .contains("-XX:+UseConcMarkSweepGC", "-server", "-Dfile.encoding=UTF-8")
+ .contains("-XX:+UseConcMarkSweepGC", "-Dfile.encoding=UTF-8")
// default settings
.contains("-Xms512m", "-Xmx512m", "-XX:+HeapDumpOnOutOfMemoryError");
File esConfDir = new File(tempDir, "conf/es");
assertThat(esConfig.getPort()).isEqualTo(1234);
assertThat(esConfig.getEsJvmOptions().getAll())
// enforced values
- .contains("-XX:+UseConcMarkSweepGC", "-server", "-Dfile.encoding=UTF-8")
+ .contains("-XX:+UseConcMarkSweepGC", "-Dfile.encoding=UTF-8")
// user settings
.contains("-Xms10G", "-Xmx10G")
// default values disabled
"-XX:CMSInitiatingOccupancyFraction=75",
"-XX:+UseCMSInitiatingOccupancyOnly",
"-XX:+AlwaysPreTouch",
- "-server",
"-Xss1m",
"-Djava.awt.headless=true",
"-Dfile.encoding=UTF-8",
"-XX:CMSInitiatingOccupancyFraction=75\n" +
"-XX:+UseCMSInitiatingOccupancyOnly\n" +
"-XX:+AlwaysPreTouch\n" +
- "-server\n" +
"-Xss1m\n" +
"-Djava.awt.headless=true\n" +
"-Dfile.encoding=UTF-8\n" +