You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,14 @@ Need different time or interval but lacking knowledge of cron? Check [crontab.gu
69
69
70
70
In your `docker-compose.yml` set `ADDITIONALFLAGS=-nobattleye`.
71
71
72
+
### How to configure memory watchdog[^4]
73
+
74
+
```yaml
75
+
environment:
76
+
- MEMORY_THRESHOLD_PERCENT=95 # Stop SCUM server when system-wide memory usage exceeds %. Set 0 to disable
77
+
- MEMORY_CHECK_INTERVAL=60 # Check interval in seconds
78
+
```
79
+
72
80
### :question: Which Docker image? `main` or `latest`?
73
81
74
82
Images tagged as `latest` are **tested and known to work.**[^3]
@@ -78,7 +86,7 @@ Any other tag represents active development and/or automated **untested** builds
78
86
79
87
I am certain some port exposures are unnecessary. However, I could not find clear documentation on which ports and protocols are actually required. The SCUM server's port calculation behaviour doesn't help either. Exposing additional ports should not cause any harm.
80
88
81
-
This image started as reverse-engineered[^4] version of the *j0s0n/scum-wine* Docker image. It attempts to fix some of its issues relating to updates and restarts and perhaps adds some enhancements. All credit for the initial work goes to j0s0n.
89
+
This image started as reverse-engineered[^5] version of the *j0s0n/scum-wine* Docker image. It attempts to fix some of its issues relating to updates and restarts and perhaps adds some enhancements. All credit for the initial work goes to j0s0n.
82
90
83
91
[^1]: Use `docker compose logs -f` to check the process.
84
92
Once you see something like `scum-server | LogBattlEye: Display: Config entry: MasterPort 8037`
@@ -88,7 +96,10 @@ in the logs, your game server should be ready to accept player connections.
88
96
89
97
[^3]: After the SCUM game server has fully started with the specific Docker image, I launch my game client and connect to it. If I can join the game and play a bit without issues, I consider the image *tested and working*.
90
98
91
-
[^4]: As the author of the original image [seems reluctant to provide the *Dockerfile*](https://steamcommunity.com/app/513710/discussions/0/603033663617122208/?ctp=3#c678482693017642366), I decided to take matters into my own hands.
99
+
[^4]: SCUM game server is known for having memory leaks due to poor design which is the reason most servers are restarted every few hours. If a server runs for too long or suffers from low memory initially, it could run out of memory and therefore being forcefully killed causing potential data loss and/or corruption.
100
+
This feature is trying to prevent this by initiating a graceful shutdown when the system-wide memory usage exceeds a specific value.
101
+
102
+
[^5]: As the author of the original image [seems reluctant to provide the *Dockerfile*](https://steamcommunity.com/app/513710/discussions/0/603033663617122208/?ctp=3#c678482693017642366), I decided to take matters into my own hands.
92
103
For the reason above the original image should be considered closed-source/proprietary.
93
104
94
105
[](https://github.com/EvilOlaf/scum "Go to GitHub repo")
0 commit comments