TiDB Server Out of Memory (OOM)

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

Original topic: tidb server OOM

| username: nuanhuang

Question: Exporting data using mydumper and importing it into TiDB, the server node’s memory keeps increasing until it OOMs.
Version: 4.0.16
TiDB Server monitoring graph:

| username: xfworld | Original post link

Batch import…

| username: nuanhuang | Original post link

I have already imported it serially by table. How should I batch it?

| username: xfworld | Original post link

Batching transactions, a super large transaction will definitely lead to OOM…

| username: nuanhuang | Original post link

An insert statement only has 3K rows of data now. :joy:

| username: xfworld | Original post link

Is each insert executed and committed one by one, or are N inserts executed and then committed?

| username: alfred | Original post link

Is it possible to limit memory usage?

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.