Closed
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
# mysql -h 10.71.205.177 -uroot -P 4000 --local-infile=1 --comments
source schema.txt
source data.txt
source query.txt
After executing this SQL, the heap profile shows that the memory usage related to the tracker is significantly high. This behavior is unexpected.
- The tracker's memory should not occupy such a large portion.
- This memory is not being tracked, and therefore it is not included in the total memory usage of a single SQL statement. This can prevent the SQL from being canceled in a timely manner, potentially leading to an Out of Memory risk.
![截屏2024-06-13 17 38 43](https://private-user-images.githubusercontent.com/9039012/339307212-df7cc2b1-958f-457b-9a05-5ae26f8fed38.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MDMzNDAsIm5iZiI6MTczOTUwMzA0MCwicGF0aCI6Ii85MDM5MDEyLzMzOTMwNzIxMi1kZjdjYzJiMS05NThmLTQ1N2ItOWEwNS01YWUyNmY4ZmVkMzgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMDMxNzIwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjYxMDA2ZGY4MjhkOGM1OTcwNTU1MWY0OGUwMzllNTE3MjhhN2YwNjQ2MDZmNmZmNjQyNDgxY2E5ODg2NzkwMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.YJrfbnK-HzOSRD_z2DjwuyESKstbhzsmRK-nOTTKw2E)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
nightly
8d28b23