Last time, according to the post, I changed the version to 1, but after running for a while, it still resulted in OOM. So, I’m a bit confused and almost in a state of giving up. I wanted to come here to seek some knowledge.
You can check CLUSTER_STATEMENTS_SUMMARY_HISTORY or CLUSTER_SLOW_QUERY to see the SQL statements with high memory usage before the OOM by summing up the MAX_MEM.
You can get the heap profile information before OOM by searching “tidb-server has the risk of OOM. Running SQLs and heap profile will be recorded in record path” in the log.