itzg / itzg/docker-minecraft-bedrock-server
ram limitation usage
- Dominant language
- Shell
- Stars
- 1.9k
- Forks
- 303
- Avg merge
- 2h 26m
- Merged PRs (30d)
- 2
Description
for some reason the docker image don't use more than 2GB of ram, I tried everything, but when it uses 2GB the server can't render new dimensions or new chunks, i have 24gb of ram on oracle, 5 vm.standard.a1 flex, performance isn't an issue, but the ram usage i simple can't understand, can someone help?
docker inspects returns the following:
ubuntu@instance-20250401-2323:~$ docker inspect 81d116712e5f
[
{
"Id": "81d116712e5febce6b9c6f79472d3671f816f8b35fc36efb00c2191428a25924",
"Created": "2025-04-02T03:00:23.262472797Z",
"Path": "/usr/local/bin/entrypoint-demoter",
"Args": [
"--match",
"/data",
"--debug",
"--stdin-on-term",
"stop",
"/opt/bedrock-entry.sh"
],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 3026,
"ExitCode": 0,
"Error": "",
"StartedAt": "2025-04-02T03:00:23.303904186Z",
"FinishedAt": "0001-01-01T00:00:00Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2025-04-02T03:25:40.309585696Z",
"End": "2025-04-02T03:25:40.345380031Z",
"ExitCode": 0,
"Output": "127.0.0.1:19132 : version=1.21.71 online=0 max=10"
},
{
"Start": "2025-04-02T03:26:10.346512616Z",
"End": "2025-04-02T03:26:10.378780028Z",
"ExitCode": 0,
"Output": "127.0.0.1:19132 : version=1.21.71 online=0 max=10"
},
{
"Start": "2025-04-02T03:26:40.379580941Z",
"End": "2025-04-02T03:26:40.41214939Z",
"ExitCode": 0,
"Output": "127.0.0.1:19132 : version=1.21.71 online=0 max=10"
},
{
"Start": "2025-04-02T03:27:10.413235165Z",
"End": "2025-04-02T03:27:10.445338605Z",
"ExitCode": 0,
"Output": "127.0.0.1:19132 : version=1.21.71 online=0 max=10"
},
{
"Start": "2025-04-02T03:27:40.446295031Z",
"End": "2025-04-02T03:27:40.482640188Z",
"ExitCode": 0,
"Output": "127.0.0.1:19132 : version=1.21.71 online=0 max=10"
}
]
}
},
"Image": "sha256:9b1921fd7c707b9e46a03d680853345f596f5db2641a7ea385baccf084ba68fc",
"ResolvConfPath": "/var/lib/docker/containers/81d116712e5febce6b9c6f79472d3671f816f8b35fc36efb00c2191428a25924/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/81d116712e5febce6b9c6f79472d3671f816f8b35fc36efb00c2191428a25924/hostname",
"HostsPath": "/var/lib/docker/containers/81d116712e5febce6b9c6f79472d3671f816f8b35fc36efb00c2191428a25924/hosts",
"LogPath": "/var/lib/docker/containers/81d116712e5febce6b9c6f79472d3671f816f8b35fc36efb00c2191428a25924/81d116712e5febce6b9c6f79472d3671f816f8b35fc36efb00c2191428a25924-json.log",
"Name": "/bds",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "docker-default",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/home/ubuntu/data:/data"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "bridge",
"PortBindings": {
"19132/udp": [
{
"HostIp": "",
"HostPort": "19132"
}
]
},
"RestartPolicy": {
"Name": "no",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"ConsoleSize": [
38,
147
],
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "private",
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"Isolation": "",
"CpuShares": 0,
"Memory": 25769803776,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": [],
"BlkioDeviceReadBps": [],
"BlkioDeviceWriteBps": [],
"BlkioDeviceReadIOps": [],
"BlkioDeviceWriteIOps": [],
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DeviceCgroupRules": null,
"DeviceRequests": null,
"MemoryReservation": 0,
"MemorySwap": 51539607552,
"MemorySwappiness": null,
"OomKillDisable": null,
"PidsLimit": null,
Contributor guide
Research direction
Start by examining the reported Docker configuration, especially HostConfig.Memory and MemorySwap from the docker inspect output, then reproduce the server behavior when it reaches roughly 2GB while rendering new dimensions or chunks. Done means identifying why the container or Bedrock server stops using available RAM and documenting or implementing a verified resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100