diff --git a/build.java b/build.java index c9ee43d..4931c17 100644 --- a/build.java +++ b/build.java @@ -390,6 +390,8 @@ private static void patchNativeImageLauncher(Path nativeImage, String mandrelVer logger.debugf("launcherMatcher.group(1): %s", launcherMatcher.group(1)); logger.debugf("launcherMatcher.group(2): %s", launcherMatcher.group(2)); final String launcherLine = launcherMatcher.group(1) + + " -XX:MaxRAM=256m" + + " -XX:MaxRAMPercentage=80" + " -Dorg.graalvm.version=\"" + mandrelVersion + "\"" + " -Dorg.graalvm.vendorversion=\"Mandrel-" + mandrelVersion + "\"" + " -Dorg.graalvm.vendor=\"" + (vendor != null ? vendor : defaultVendor) + "\"" +