Split up memory option to min and maxmemory

This commit is contained in:
2026-05-24 22:35:43 +02:00
parent b9e49b387f
commit 8e08154d21
5 changed files with 29 additions and 12 deletions
@@ -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()));
}