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
{{ message }}
Repository navigation
[Bug] IotDB pods crash with OOM because we calculate the memory based on the node not pod resources #17764
I searched in the issues and found nothing similar.
Version
latest
Describe the bug and provide the minimal reproduce step
Start IOTDB datanode and confignode pods with memory limits, for example 8 GB, and allocate 8 GB of resources to each pod.
Pods keep crashing with OOM errors because the JVM is trying to allocate 16 GB of memory.
What did you expect to see?
# When running in a container/pod, use cgroup memory limit instead of host memory
if [ -f /sys/fs/cgroup/memory.max ]; then
# cgroup v2
cgroup_mem=`cat /sys/fs/cgroup/memory.max`
if [ "$cgroup_mem" != "max" ]; then
cgroup_mem_in_mb=`expr $cgroup_mem / 1024 / 1024`
if [ "$cgroup_mem_in_mb" -lt "$system_memory_in_mb" ]; then
system_memory_in_mb=$cgroup_mem_in_mb
fi
fi
elif [ -f /sys/fs/cgroup/memory/memory.limit_in_bytes ]; then
# cgroup v1
cgroup_mem=`cat /sys/fs/cgroup/memory/memory.limit_in_bytes`
cgroup_mem_in_mb=`expr $cgroup_mem / 1024 / 1024`
if [ "$cgroup_mem_in_mb" -lt "$system_memory_in_mb" ]; then
system_memory_in_mb=$cgroup_mem_in_mb
fi
fi
8GB
I would expect the memory to be auto-calculated based on the pod resources (8 GB), not the node resources (32 GB).
changed the title [-][Bug] Iotdb POD crash with OOM[/-][+][Bug] Iotdb pods crash with OOM because we calculate the memory based on the node not pod resources[/+]on May 25, 2026
changed the title [-][Bug] Iotdb pods crash with OOM because we calculate the memory based on the node not pod resources[/-][+][Bug] IotDB pods crash with OOM because we calculate the memory based on the node not pod resources[/+]on May 25, 2026
Activity
[-][Bug][/-][+][Bug] Iotdb POD crash with OOM[/+][-][Bug] Iotdb POD crash with OOM[/-][+][Bug] Iotdb pods crash with OOM because we calculate the memory based on the node not pod resources[/+][-][Bug] Iotdb pods crash with OOM because we calculate the memory based on the node not pod resources[/-][+][Bug] IotDB pods crash with OOM because we calculate the memory based on the node not pod resources[/+]MileaRobertStefan commentedon May 25, 2026
#17765