Split up memory option to min and maxmemory
This commit is contained in:
@@ -20,8 +20,8 @@ public class ServerRunStep extends Step<ServerRunStepConfig> {
|
||||
private List<String> buildCommand() {
|
||||
List<String> cmd = new ArrayList<>();
|
||||
cmd.add("java");
|
||||
cmd.add("-Xmx" + getConfig().memory());
|
||||
cmd.add("-Xms" + getConfig().memory());
|
||||
cmd.add("-Xmx" + getConfig().maxMemory());
|
||||
cmd.add("-Xms" + getConfig().minMemory());
|
||||
if (getConfig().remoteDebug() && getConfig().debugPort() > 0) {
|
||||
cmd.add(String.format("-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:%d", getConfig().debugPort()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user