Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: tidb server已经在配置文件中限制了内存,但是还是爆满了。
【TiDB Usage Environment】Production
【TiDB Version】v5.2.2
【Encountered Problem】The tidbserver has already set a memory limit, but it still exceeds it.
【Reproduction Path】
【Problem Phenomenon and Impact】
This is still an experimental feature and may have issues.
I found the data in information_schema, but I don’t know the reason.
Did you not reload the configuration with tiup cluster reload
after modifying the configuration file?
https://docs.pingcap.com/zh/tidb/stable/maintain-tidb-using-tiup#修改配置参数
That shouldn’t be the case. Try loading it again.
Tried the reload parameter modification in version 5.4 and it took effect.
resource_control:
memory_limit: “64G” Try using this limit
Reloading didn’t work, and even after restarting the entire cluster, it’s still the same.
Then it can only be attributed to experimental features. Unstable.
It should be considered a bug.
Where is this configured?
This is defined in the topology configuration file when “Deploying a TiDB Cluster via TiUP”. You can refer to the documentation: 通过 TiUP 部署 TiDB 集群的拓扑文件配置 | PingCAP 文档中心 (essentially using systemd’s system limitation features)
The image you provided is not accessible. Please provide the text you need translated.
According to this statement, is there still no way to limit the memory usage of tidb-server?
This topic will be automatically closed 60 days after the last reply. No new replies are allowed.