From 6a172a71a69c634a65b62ca86c218bac6dadff81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?To=CF=80?= Date: Sat, 2 Dec 2023 13:33:27 +0100 Subject: [PATCH] Revert "Change the default max heap allocation to java default (#955)" This reverts commit 1a561814f1bfc64368ab21b1f43296c0aeb36d6e. --- LavalinkServer/docker/Dockerfile | 2 +- LavalinkServer/docker/alpine.Dockerfile | 2 +- README.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/LavalinkServer/docker/Dockerfile b/LavalinkServer/docker/Dockerfile index 916af5e14..43a0af872 100644 --- a/LavalinkServer/docker/Dockerfile +++ b/LavalinkServer/docker/Dockerfile @@ -12,4 +12,4 @@ USER lavalink COPY LavalinkServer/build/libs/Lavalink.jar Lavalink.jar -ENTRYPOINT ["java", "-Djdk.tls.client.protocols=TLSv1.1,TLSv1.2", "-jar", "Lavalink.jar"] +ENTRYPOINT ["java", "-Djdk.tls.client.protocols=TLSv1.1,TLSv1.2", "-Xmx4G", "-jar", "Lavalink.jar"] diff --git a/LavalinkServer/docker/alpine.Dockerfile b/LavalinkServer/docker/alpine.Dockerfile index 3409b4c49..e24daeed2 100644 --- a/LavalinkServer/docker/alpine.Dockerfile +++ b/LavalinkServer/docker/alpine.Dockerfile @@ -14,4 +14,4 @@ USER lavalink COPY LavalinkServer/build/libs/Lavalink-musl.jar Lavalink.jar -ENTRYPOINT ["java", "-Djdk.tls.client.protocols=TLSv1.1,TLSv1.2", "-jar", "Lavalink.jar"] +ENTRYPOINT ["java", "-Djdk.tls.client.protocols=TLSv1.1,TLSv1.2", "-Xmx4G", "-jar", "Lavalink.jar"] diff --git a/README.md b/README.md index 62ffcc647..1d581d859 100644 --- a/README.md +++ b/README.md @@ -267,7 +267,7 @@ Group= WorkingDirectory= # The command to start Lavalink -ExecStart=java -Xmx1G -jar /Lavalink.jar +ExecStart=java -Xmx4G -jar /Lavalink.jar # Restart the service if it crashes Restart=on-failure @@ -307,7 +307,7 @@ services: container_name: lavalink restart: unless-stopped environment: - - _JAVA_OPTIONS=-Xmx1G # set Java options here + - _JAVA_OPTIONS=-Xmx6G # set Java options here - SERVER_PORT=2333 # set lavalink server port - LAVALINK_SERVER_PASSWORD=youshallnotpass # set password for lavalink volumes: