Received: by 10.204.6.19 with SMTP id 19mr247308bkx.8.1350018352153; Thu, 11 Oct 2012 22:05:52 -0700 (PDT) X-BeenThere: erlang-programming@googlegroups.com Received: by 10.204.155.71 with SMTP id r7ls2903143bkw.6.gmail; Thu, 11 Oct 2012 22:05:51 -0700 (PDT) Received: by 10.204.4.211 with SMTP id 19mr246636bks.5.1350018351777; Thu, 11 Oct 2012 22:05:51 -0700 (PDT) Received: by 10.204.4.211 with SMTP id 19mr246635bks.5.1350018351750; Thu, 11 Oct 2012 22:05:51 -0700 (PDT) Return-Path: Received: from hades.cslab.ericsson.net (hades.cslab.ericsson.net. [192.121.151.104]) by gmr-mx.google.com with ESMTP id v13si737431bkw.0.2012.10.11.22.05.51; Thu, 11 Oct 2012 22:05:51 -0700 (PDT) Received-SPF: pass (google.com: domain of erlang-questions-boun...@erlang.org designates 192.121.151.104 as permitted sender) client-ip=192.121.151.104; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of erlang-questions-boun...@erlang.org designates 192.121.151.104 as permitted sender) smtp.mail=erlang-questions-boun...@erlang.org; dkim=neutral (body hash did not verify) header...@gmail.com Received: from hades.cslab.ericsson.net (hades [192.121.151.104]) by hades.cslab.ericsson.net (Postfix) with ESMTP id CC3055C0C6; Fri, 12 Oct 2012 07:05:43 +0200 (CEST) X-Original-To: erlang-questi...@erlang.org Delivered-To: erlang-questi...@erlang.org Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com [209.85.216.181]) by hades.cslab.ericsson.net (Postfix) with ESMTP id 2B76C5C005 for ; Fri, 12 Oct 2012 07:05:42 +0200 (CEST) Received: by mail-qc0-f181.google.com with SMTP id x40so2095161qcp.40 for ; Thu, 11 Oct 2012 22:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qVdBWUsDrbRttk/H6LNtdbKwVktD0W7LIV3U+IQX/0I=; b=Zxpso+e2E9f7gNZiMaqmmiq5feDP2HmkZy8nXS833xuouMzy69cjhwTLKP4fqdxAEj A5IxP6DkWU9bxSdX5iLjwELfGoLPbV1cWE7TXV+zkZSgHnSUw3jn0jv9QgnRssiXgRll KRaa0omoIibNSEtyJolzz8QJjEjV8ME1ITlYCyp8yp9Fj289yJDVqjm/+O8l+MeT9H5+ Uos7x6yw2XuzriYxqj80VBqV6bqBDZ9RwhrzLpMSx3jXrPGhPn+DIW9OCYa2Hn03EI95 k+WOrjIRf+wXgasBu22nf+0NYjPQS/Ov0r3CNrqIvnlBsANFL6xFtceptQuQ5bxCWEnY cX2A== MIME-Version: 1.0 Received: by 10.49.49.167 with SMTP id v7mr6940925qen.65.1350018341176; Thu, 11 Oct 2012 22:05:41 -0700 (PDT) Received: by 10.49.58.207 with HTTP; Thu, 11 Oct 2012 22:05:41 -0700 (PDT) In-Reply-To: <5077990D.8000...@gmail.com> References: <5077990D.8000...@gmail.com> Date: Thu, 11 Oct 2012 22:05:41 -0700 Message-ID: From: Code Box To: Michael Truog Cc: erlang-questi...@erlang.org Subject: Re: [erlang-questions] Timeout Erlang GenServer Crash Loop X-BeenThere: erlang-questi...@erlang.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Erlang/OTP discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============7758659377243271333==" Errors-To: erlang-questions-boun...@erlang.org Sender: erlang-questions-boun...@erlang.org --===============7758659377243271333== Content-Type: multipart/alternative; boundary=047d7b6da828aa856304cbd5a395 --047d7b6da828aa856304cbd5a395 Content-Type: text/plain; charset=ISO-8859-1 Will it not relate to any CPU Stats of my host and also any memory stats of my host that the process is overloaded ? I see CPU % usage as just 50% ? On Thu, Oct 11, 2012 at 9:14 PM, Michael Truog wrote: > ** > On 10/11/2012 09:03 PM, Code Box wrote: > > ** Reason for termination == > ** {timeout,{gen_server,call,[thetime,gettime]}} > > =CRASH REPORT==== 2012-10-09 05:37:04 UTC === > crasher: > initial call: process_listener:-init/1-fun-2-/0 > pid: <0.12376.513> > registered_name: [] > exception exit: {timeout,{gen_server,call,[thetime,gettime]}} > in function gen_server:terminate/6 > ancestors: [incoming_req_processor,incoming_sup,top_process_sup, > <0.52.0>] > messages: [] > links: [] > dictionary: [{random_seed,{23375,22820,17046}}] > trap_exit: true > status: running > heap_size: 6765 > stack_size: 24 > reductions: 1646842 > neighbours: > > I am seeing a lot of these messages in my Crash Reports. Once this > reaches this it goes into this crash loop for quite a while. I am not sure > how to debug this error. These timeouts are really annoying. Can some one > help me understand the root cause of this? > > Why does my genserver calls are facing timeouts ? Is it that my erlang > VM is slow if so why ? How can i debug this issue to get to the root cause > of it ? > > If you look at gen_server:call/2 at > http://www.erlang.org/doc/man/gen_server.html > it shows the default Timeout is 5000 milliseconds (5 seconds). Your > gen_server process must have been processing for longer than 5 seconds > while a gen_server:call/2 message was waiting in the process message queue, > to cause the timeout exception. So, it isn't the Erlang VM being slow, it > is just an Erlang process that is overloaded (i.e., the "thetime" > registered process). > > > > --047d7b6da828aa856304cbd5a395 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Will it not relate to any CPU Stats of my host and also any memory stats of= my host that the process is overloaded ? I see CPU % usage as just 50% ?
On Thu, Oct 11, 2012 at 9:14 PM, Michael T= ruog <mjtr...@gmail.com> wrote:
=20 =20 =20
On 10/11/2012 09:03 PM, Code Box wrote:
=20
** Reason for termination =3D=3D
** {timeout,{gen_server,call,[thetime,gettime]}}

=3DCRASH REPORT=3D=3D=3D=3D 2012-10-09 05:37:04 UTC =3D=3D=3D
=A0 crasher:
=A0 =A0 initial call: process_listener:-init/1-fun-2-/0
=A0 =A0 pid: <0.12376.513>
=A0 =A0 registered_name: []
=A0 =A0 exception exit: {timeout,{gen_server,call,[thetime,gettime]}}
=A0 =A0 =A0 in function =A0gen_server:terminate/6
=A0 =A0 ancestors: [incoming_req_processor,incoming_sup,top_process_sup,
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <0.52.0>]
=A0 =A0 messages: []
=A0 =A0 links: []
=A0 =A0 dictionary: [{random_seed,{23375,22820,17046}}]
=A0 =A0 trap_exit: true
=A0 =A0 status: running
=A0 =A0 heap_size: 6765
=A0 =A0 stack_size: 24
=A0 =A0 reductions: 1646842
=A0 neighbours:

I am seeing a lot of these messages in my Crash Reports. Once this reaches this it goes into this crash loop for quite a while. I am not sure how to debug this error. These timeouts are really annoying. Can some one help me understand the root cause of this?

Why does my genserver calls are facing timeouts ? Is it that my erlang VM is slow if so why ? How can i debug this issue to get to the root cause of it ?=A0

If you look at gen_server:call/2 at http://www.erlang.org/doc/man/gen_server.html
it shows the default Timeout is 5000 milliseconds (5 seconds).=A0 Your gen_server process must have been processing for longer than 5 seconds while a gen_server:call/2 message was waiting in the process message queue, to cause the timeout exception.=A0 So, it isn't the Erlang VM being slow, it is just an Erlang process that is overloaded (i.e., the "thetime" registered process).




--047d7b6da828aa856304cbd5a395-- --===============7758659377243271333== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ erlang-questions mailing list erlang-questi...@erlang.org http://erlang.org/mailman/listinfo/erlang-questions --===============7758659377243271333==--