On Sat, Feb 3, 2018, 4:42 PM ppcfan <ppc...@gmail.com> wrote: > We started this Go application by supervisor, so this Go app should be the > subprocess of supervisor. Do you think it is the problem? >
If it's coming from other processes then you should see those show up in your ps. I was just wondering if your go app launched new processes which consumed memory. Supervisor is only launching and managing your specific Go process that was configured. > On Saturday, February 3, 2018 at 3:18:02 AM UTC+8, Justin Israel wrote: >> >> >> >> On Sat, Feb 3, 2018, 2:21 AM Zhang Rui <ppc...@gmail.com> 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. >> >> >>> 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. > -- 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.