From 90117a7e7be6d68abb372d034573924ab9de6588 Mon Sep 17 00:00:00 2001 From: Nihal Mirpuri Date: Tue, 19 Dec 2023 22:41:45 +0000 Subject: [PATCH] Set -Xmx to 100m --- README.md | 1 + docker/entrypoint.sh | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2bda961..6402259 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,7 @@ Running this using native java requires the fat jar, download the latest from th java -Dsonarr.apikey=YOUR_API_KEY\ -Dradarr.apikey=YOUR_API_KEY\ -Dplex.token=YOUR_PLEX_TOKEN\ + -Xmx100m\ -jar watchlistarr.java ``` diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index db5b82a..601d52b 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -2,6 +2,8 @@ CMD="/app/bin/watchlistarr" +JAVA_OPTS="-Xmx100m" + if [ -n "$SONARR_API_KEY" ]; then CMD="$CMD -Dsonarr.apikey=$SONARR_API_KEY" fi @@ -66,4 +68,4 @@ if [ -n "$SKIP_FRIEND_SYNC" ]; then CMD="$CMD -Dplex.skipfriendsync=$SKIP_FRIEND_SYNC" fi -exec $CMD +exec $CMD $JAVA_OPTS