为什么我有2台TIKV内存爆了

【TiDB 使用环境】生产环境 /测试/ Poc
【TiDB 版本】7.5
【操作系统】linux 7.5


我都是默认配置,按官方文档的说法最多占用服务内存的75%才对

你思路没错,应该就是block-cache的问题。

通过set config往下压就行了。

https://docs.pingcap.com/zh/tidb/stable/dynamic-config/#在线修改集群配置

show config where name like ‘%storage.block-cache.capacity%’;—看下是多少,看你的配置顶多设置成13G
set tikv config storage.block-cache.capacity=13G;

设置一下

tiup cluster edit-config tidb_name

修改:
server_configs:
tikv:
storage.block-cache.capacity: 28991029248

加载:
tiup cluster reload tidb_name -R -N下

image
我查了下 是 13.5G.这个大了 需要小一点?