Deploying Two TiKV Instances on One Machine Causes OOM

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 一台机器部署两个tikv 导致 oom

| username: 数据库菜鸡

How should it be configured?
set config tikv ‘rocksdb.block-cache-size’=3GB;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 42 near “‘rocksdb.block-cache-size’=3GB”
Thank you

| username: h5n1 | Original post link

set config tikv storage.block-cache.capacity=‘32GB’;

| username: tidb菜鸟一只 | Original post link

SET config tikv storage.block-cache.capacity=‘3GiB’

| username: Hacker007 | Original post link

OOM will not be caused by deploying two TiKV instances on one machine. As mentioned above, increase the cache size.