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: