Use only OpenJDK version 17; 2 GB RAM by default

This commit is contained in:
DarkCat09 2023-07-20 12:30:34 +04:00
parent c4cfcecb00
commit b04e279094

View file

@ -1,11 +1,11 @@
#!/bin/ash #!/bin/ash
# shellcheck shell=dash # shellcheck shell=dash
JAVA_BIN="/usr/lib/jvm/default-jvm/bin/java" JAVA_BIN="/usr/lib/jvm/java-17-openjdk/bin/java"
PIPED="/home/piped/piped.jar" PIPED="/home/piped/piped.jar"
"$JAVA_BIN" -server \ "$JAVA_BIN" -server \
-Xmx1G \ -Xmx2G \
-XX:+UnlockExperimentalVMOptions \ -XX:+UnlockExperimentalVMOptions \
-XX:+OptimizeStringConcat \ -XX:+OptimizeStringConcat \
-XX:+UseStringDeduplication \ -XX:+UseStringDeduplication \