Why runtime force gc every 2 
minutes?, 
https://github.com/golang/go/blob/016e6ebb4264f4b46e505bb404953cdb410f63f2/src/runtime/proc.go#L5226

AFAIK gc will be triggered when user try to allocate memory (the mallocgc 
func)

and if user want to force gc every 2 minutes, they can create their own 
goroutine to call runtime.GC() every 2 minute

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/0c330217-579e-442d-be4d-888b8890ccb9n%40googlegroups.com.

Reply via email to