[erlang-questions] Investigate an infinite loop on production servers
Dmitry Kolesnikov
dmkolesnikov@REDACTED
Thu May 23 11:50:11 CEST 2013
which means that you are using proc_lib heavily...
Are those top process with reductions, message queue size or heap?
Try to connect into node and gather more info about those processes using
erlang:process_info(…) or sys:get_status(…)
- Dmitry
On May 23, 2013, at 12:35 PM, Morgan Segalis <msegalis@REDACTED> wrote:
> Nevermind I got it…
>
> However I do not get a lot of information…
>
> most of process is proc_lib:ini_p/5
>
> Le 23 mai 2013 à 11:23, Morgan Segalis <msegalis@REDACTED> a écrit :
>
>> Apparently I'm monitoring my own node…
>>
>> Does someone know how to monitor a external cluster node with etop ?
>>
>> Le 23 mai 2013 à 11:13, Morgan Segalis <msegalis@REDACTED> a écrit :
>>
>>> I have launch the etop on my computer monitoring the production server… hoping that I will see something wrong !
>>>
>>> Thank you for your help so far (to All).
>>>
>>> I'll come back to you as soon as I have more information with etop.
>>>
>>> Morgan.
>>>
>>> Le 23 mai 2013 à 07:38, Vance Shipley <vances@REDACTED> a écrit :
>>>
>>>> On Thu, May 23, 2013 at 04:00:07AM +0200, Morgan Segalis wrote:
>>>> } I'm having a bit of an issue with my production servers.
>>>>
>>>> You will find that etop is your friend:
>>>>
>>>> http://www.erlang.org/doc/apps/observer/etop_ug.html
>>>>
>>>> Run etop from the command line and sort on the column you're
>>>> interested in. To watch memory usage:
>>>>
>>>> etop -node tiger@REDACTED -sort memory
>>>>
>>>> This will list the processes by memory size in decreasing order.
>>>> This shows you the memory hogs. Watch it as it starts to get
>>>> into trouble and you should see where the memory is getting used.
>>>>
>>>> As Bob points out the most common problem is that a process's
>>>> inbox will start to fill up. Once this starts happening it's
>>>> the beginning of the end. Another process may start eating up
>>>> memory and the node may crash because it has requested more than
>>>> is available bt the root cause was that one process not having
>>>> time to service the messages at the rate they are received.
>>>>
>>>> To watch for message queue lengths:
>>>>
>>>> etop -node tiger@REDACTED -sort msg_q
>>>>
>>>> The above will list the processes in decreasing order of inbox
>>>> size. They should all be zero, and sometimes one, normally. If
>>>> you have a problem you'll see one process stay at the top and it's
>>>> message queue length will start to grow over time.
>>>>
>>>> --
>>>> -Vance
>>>
>>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list