Thank you for your reply. No, this app doesn't use cgo. It's a pure Go application. Another go application on this VM used cgo. But it also should not launch the subprocesses.
在 2018年2月3日星期六 UTC+8上午3:18:02,Justin Israel写道: > > > > On Sat, Feb 3, 2018, 2:21 AM Zhang Rui <ppc...@gmail.com <javascript:>> > wrote: > >> Hello gophers, >> >> I have a VM on Linode.com. OS is Cent OS 6.8 and kernel >> is 4.14.12-x86_64-linode92. It has 1 CPU core and 2G RAM. >> A Go application is running on this VM. >> Free memory on this VM is 490M (with buffer and cache), The RSS value of >> this Go application is only 12M. After I kill this Go app, free memory will >> increase to 950M. I have called Debug.FreeOSMemory() in this Go app every >> minute. >> Sometimes, free memory will be decreased to 0 and this Go app will be >> killed by oom-killer. Does anyone know where is my memory? >> > > Does your program make use of cgo to call into C/C++? Does it launch > subprocesses? > >> >> >> -- >> 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...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- 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. For more options, visit https://groups.google.com/d/optout.