-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
memory leak in mockstore #18048
Comments
/label component/store |
Yes, I can confirm the memory leak. |
Those are the global variables of the test program. |
Most of global variables will not increase memory usage, I think we can just let them stay there. But some of them may increase memory usage after repeated |
The global variable itself does not increase memory usage, but the may reference some other variable and make the variable can not be released by GC, thus leak. |
I find one place of the leak tidb/expression/builtin_vectorized.go Line 48 in c9c0daf
|
@tiancaiamao @qw4990 Is anyone still working on this? |
No progress on this issue. @csuzhangxc |
@tiancaiamao can you fix the one you found above first? tidb/expression/builtin_vectorized.go Line 48 in c9c0daf
|
ping anyone |
Sorry for my late reply. Could you please give me your |
Since this problem only occurs in |
test.tar.gz |
/pick-up |
It is not a pickable issue! DetailsTip : If you want this issue to be picked, you need to add a Warning: None |
@ichn-hu Could you please add a label for the bug fixing challenge that I could pick up this issue? |
You can fire a PR to fix it directly. |
Ping |
found that Lines 103 to 105 in 7755d25
|
I found statisticsList will always hold the statistics which is probably a tidb/sessionctx/variable/statusvar.go Lines 46 to 50 in c26038b
After clear domap and comment the follow two lines, the memory won't increase all the time. Line 120 in c26038b
Line 386 in c26038b
|
Please check whether the issue should be labeled with 'affects-x.y' or 'backport-x.y.z', |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
free the memory when dom.Close()
3. What did you see instead (Required)
4. Affected version (Required)
tidb master
5. Root Cause Analysis
The text was updated successfully, but these errors were encountered: