I use 'debug.FreeOsMemory'. But it is not the certain.

在 2019年6月24日星期一 UTC+8上午10:59:06,Chou Yan写道:
>
> My server have 100G memory. 
> I limit my server 60G by cgroups.
> But my app process use the momory more and more !
> even more than 50G.
> my prof:
>
> # HeapIdle = 27377164288
> # HeapInuse = 21910396928
>
> The Cgroup will kill the process when  it use more than 60G
>
> But golang runtime gc will not release the memory to the os. 
>
> It's bad.
>
> The Go garbage collector occasionally makes requests to the OS to release 
> unused memory. The OS may decide to not release the memory because the system 
> has plenty to spare, other some other reason .
> How should this be solved?
>
>

-- 
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/0bc4f86c-833c-4798-b06c-a1559edd6212%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to