Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
Go will release memory and return them to the OS, but not immediately.
You can call debug.FreeOSMemory() to tell GC to return memory, but it may not help much. I found debug.SetGCPercent(10) is more helpful.
I think you should make your code more memory efficient, you may also want to limit goroutine concurrency to make sure they will not eat up all your available memory.