Garbage collection in Golang

I want to understand the sweep algorithm of Go garbage collector. Some of the memory in heap is not reclaimed by GC, even after few days of our service uptime. In what cases, Go GC cannot identify the unusable objects for cleanup ?

Hi @Charitha_Gurram and welcome!
First, are you sure you don’t have some leaks? About specific resources not released (defer, a starving coroutine or a timer)? And if you’re sure about this, did you profile the program with pprof in the specific area? :slight_smile: . Please provide a small example of a leak of yours.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.