runtime: SetFinalizer causes undesirable memory overhead #45581
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
I want the process to consume less memory.
What did you see instead?
Use SetFinalizer:
Actual memory usage 101GB
VmRSS: 106328688 kB
Unuse SetFinalizer:
Actual memory usage 4.5GB
VmRSS: 5481500 kB
The text was updated successfully, but these errors were encountered: