Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set maximum memory #60

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
4 changes: 3 additions & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -66,4 +68,4 @@ if [ -n "$SKIP_FRIEND_SYNC" ]; then
CMD="$CMD -Dplex.skipfriendsync=$SKIP_FRIEND_SYNC"
fi

exec $CMD
exec $CMD $JAVA_OPTS
Loading