Re: [go-nuts] Where is my memory in Linux?

2018-02-03 Thread Justin Israel
On Sat, Feb 3, 2018, 4:42 PM ppcfan  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  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.


Re: [go-nuts] Where is my memory in Linux?

2018-02-02 Thread ppcfan
We started this Go application by supervisor, so this Go app should be the 
subprocess of supervisor. Do you think it is the problem?

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  
> 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.


Re: [go-nuts] Where is my memory in Linux?

2018-02-02 Thread Zhang Rui
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  
> 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.


Re: [go-nuts] Where is my memory in Linux?

2018-02-02 Thread Justin Israel
On Sat, Feb 3, 2018, 2:21 AM Zhang Rui  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+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.


[go-nuts] Where is my memory in Linux?

2018-02-02 Thread Zhang Rui
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?




















-- 
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.