[fix] : free the memory of stmt holded by ComputationWrapper manually #13646
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Which issue(s) this PR fixes:
issue # https://github.com/matrixorigin/MO-Cloud/issues/2035
What this PR does / why we need it:
在导入slooong_003的时候发现内存上涨的速度非常夸张而且没有free掉, pprof之后发现是stmts导致的,
在32GB, 16core的机器上用单CN, insert的方式导入slooong_003
手动置为nil之后在导入slooong_003时的最大内存占用在18GB, 随后回落到16GB
作为对比main在开始导入数据一分钟左右占用的内存就会突破16GB, 基本稳定在31GB左右, 有不小的概率oom