Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: TiFlash CPU和内存突然升高导致重启
【TiDB Usage Environment】Production Environment
【TiDB Version】TIDB 6.1.2
【Encountered Problem】TiFlash auto-restarts
【Reproduction Path】What operations were performed that led to the problem
【Problem Phenomenon and Impact】
CPU and memory suddenly increased, then TiFlash restarted, but no useful information was found in the logs.
Check if there are any SQL statements hitting TiFlash using the TOP SQL and SQL statement analysis features in the dashboard. Traffic visualization shows significant traffic at that time, but it is impossible to pinpoint the specific problem or statement. The largest memory-consuming query in the slow query log is only 200MB, and the others are just a few dozen, which doesn’t seem to be the root cause.
【Attachments】Related logs and monitoring (https://metricstool.pingcap.com/)
tiflash-monitor&log.zip (63.1 KB)
For questions related to performance optimization or fault troubleshooting, please download the script and run it. Please select all and copy-paste the terminal output.