Skip to content
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

How often does Go GC after the memory exceeds the GOMEMLIMIT limit? #66569

Closed
18710309920 opened this issue Mar 28, 2024 · 1 comment
Closed

Comments

@18710309920
Copy link

My system triggers OOM when it exceeds 2G. I set the value of GOMEMLIMIT to 1.5G. However, when the memory exceeds 1.5 GB, the GO frequently performs GC, which affects the system performance. I would like to know how the frequency of GC is determined when the memory exceeds the value set by the GOMEMLIMIT

@Jorropo
Copy link
Member

Jorropo commented Mar 28, 2024

the runtime does already have a mechanism to limit GC CPU time close to the memory limit. The CPU time limit is set to 50% over a 1 second window

#59324 (comment)


Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

Please see: https://go.dev/wiki/Questions

@Jorropo Jorropo closed this as not planned Won't fix, can't repro, duplicate, stale Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants