SteamWar/BungeeCore
Archiviert
13
2

Remove OpenJDK
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-07-17 16:31:55 +02:00
Ursprung cfa1ccc4b8
Commit c79f49b166

Datei anzeigen

@ -81,8 +81,6 @@ public abstract class Node {
protected void constructServerstart(File directory, List<String> cmd, String serverJar, String worldDir, String levelName, int port, String xmx, String... dParams) {
if (JAVA_8.contains(serverJar))
cmd.add("/usr/lib/jvm/java-8-openj9-amd64/bin/java");
else if(serverJar.equals("paper-1.19.jar"))
cmd.add("/usr/lib/jvm/java-17-openjdk-amd64/bin/java");
else
cmd.add("java");
@ -90,30 +88,8 @@ public abstract class Node {
cmd.add("-D" + param);
}
cmd.add("-Xmx" + xmx);
if(serverJar.equals("paper-1.19.jar")) {
cmd.add("-XX:+UseG1GC");
cmd.add("-XX:+ParallelRefProcEnabled");
cmd.add("-XX:MaxGCPauseMillis=200");
cmd.add("-XX:+UnlockExperimentalVMOptions");
cmd.add("-XX:+DisableExplicitGC");
cmd.add("-XX:+AlwaysPreTouch");
cmd.add("-XX:G1NewSizePercent=30");
cmd.add("-XX:G1MaxNewSizePercent=40");
cmd.add("-XX:G1HeapRegionSize=8M");
cmd.add("-XX:G1ReservePercent=20");
cmd.add("-XX:G1HeapWastePercent=5");
cmd.add("-XX:G1MixedGCCountTarget=4");
cmd.add("-XX:InitiatingHeapOccupancyPercent=15");
cmd.add("-XX:G1MixedGCLiveThresholdPercent=90");
cmd.add("-XX:G1RSetUpdatingPauseTimePercent=5");
cmd.add("-XX:SurvivorRatio=32");
cmd.add("-XX:+PerfDisableSharedMem");
cmd.add("-XX:MaxTenuringThreshold=1");
} else {
cmd.add("-Xshareclasses:nonfatal,name=" + directory.getName());
cmd.addAll(OPENJ9_ARGS);
}
if (!JAVA_8.contains(serverJar)) {
cmd.add("--add-opens");
cmd.add("java.base/jdk.internal.misc=ALL-UNNAMED");