Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B0D2C8F52 for ; Fri, 12 Aug 2011 14:48:46 +0000 (UTC) Received: (qmail 73090 invoked by uid 500); 12 Aug 2011 14:48:45 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 72968 invoked by uid 500); 12 Aug 2011 14:48:44 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 72960 invoked by uid 99); 12 Aug 2011 14:48:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2011 14:48:43 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.220.180 as permitted sender) Received: from [209.85.220.180] (HELO mail-vx0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2011 14:48:38 +0000 Received: by vxh15 with SMTP id 15so3795193vxh.11 for ; Fri, 12 Aug 2011 07:48:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=yG8dNuljokGXL+DbydAfzXQh1uMjPvAhdfPyarA2vFA=; b=lPEUqKQj+kYUn7DDHwZc7HLFqawUysp6tMtk0hmTC4RfpoRBIWv3/0URK00iqHomUp 5xmtpaDXGKLgd6WylZulvHOa6wRkgAsB1a4gbecfV/sANE5btbzPNsT/Jgp05ssN92xO 0jdslpw/gNC14NJ2mjeencsnekAAsoKSu176Q= Received: by 10.52.180.102 with SMTP id dn6mr888381vdc.51.1313160498065; Fri, 12 Aug 2011 07:48:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.168.130 with HTTP; Fri, 12 Aug 2011 07:47:38 -0700 (PDT) In-Reply-To: <1CACAA18-C3E6-4921-91E3-53A40018CCA5@thenoi.se> References: <297F39FD-EA1B-44A0-B5C3-5633F6CE5988@thenoi.se> <1CACAA18-C3E6-4921-91E3-53A40018CCA5@thenoi.se> From: Paul Davis Date: Fri, 12 Aug 2011 09:47:38 -0500 Message-ID: Subject: Re: gen_server timeout To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Martin, I'm pretty sure the patch on this [1] ticket would fix this for you. It should apply cleanly to 1.1.x and trunk. I'm gonna try and find someone to review this later but it should land in trunk fairly soon if you build that. Paul [1] https://issues.apache.org/jira/browse/COUCHDB-1246 On Fri, Aug 12, 2011 at 5:25 AM, Martin Hewitt wrote: > Hi Paul, > > This, sadly, in my case, happens very rarely, but it is linked to a high load of view rebuilds. I'll look into capturing the data you've asked for if I see it happening again, and I'll also look into increasing the number of processes. > > Thanks for you help, > > Martin > > Sent from my iPhone > > On 11 Aug 2011, at 18:30, Paul Davis wrote: > >> When this happens can you do a "ps ax | grep couchjs" on the machine >> hosting CouchDB? It sounds like you've hit the process limit (which is >> configurable). Hard to say if this is because you have lots of >> concurrent clients holding couchjs processes or if we're leaking them >> out of the pool somehow. If you can show that there aren't any clients >> holding them (ie, from view updates or long list calls) then I'd be >> super intrigued to see if you can narrow it down to a test case. I've >> heard a couple anecdotes about leakage here but never with enough >> detail to start looking for a root cause. >> >> On Thu, Aug 11, 2011 at 5:26 AM, Martin Hewitt wrote: >>> I've put a log extract on Pastebin here: http://pastebin.com/PuJm08J0 >>> >>> Sorry, I'm not familiar with erlang, so I'm not sure which bits are pertinent, and there may well be more than one error trace in there. >>> >>> Any help would be greatly appreciated. >>> >>> Martin >>> >>> On 11 Aug 2011, at 11:14, Martin Hewitt wrote: >>> >>>> Hi all, >>>> >>>> I'm getting the following error when trying to load some views: >>>> >>>> {"error":"timeout","reason":"{gen_server,call,[couch_query_servers,{get_proc,<<\"javascript\">>}]}"} >>>> >>>> Googling around, it seems this issue has been "fixed" way before I even started using CouchDB. Any ideas what could be causing it now? >>>> >>>> Thanks, >>>> >>>> Martin >>> >>> >