Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tispark读取kv数据OOM

Using TiSpark to read a 200G table, I found that TiKV encountered OOM issues and kept failing. The cluster has 6 TiKV nodes, each with 16 cores and 64GB of memory. During the reading process, the resource consumption of TiKV was unbalanced. Initially, 2 nodes were working, gradually increasing to 4 nodes, and then OOM occurred. Disk usage was not high.
I tested with another TiDB cluster, which was upgraded from version 5.1.4 to 6.5.3, and it worked fine with normal memory consumption. However, the problematic cluster was directly installed with version 6.5.3. I am not sure if the default parameter changes caused this issue. Has anyone encountered similar situations? Please help with some answers.