Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 34408 invoked from network); 15 Sep 2009 11:37:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Sep 2009 11:37:56 -0000 Received: (qmail 97357 invoked by uid 500); 15 Sep 2009 11:37:54 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 97279 invoked by uid 500); 15 Sep 2009 11:37:54 -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 97269 invoked by uid 99); 15 Sep 2009 11:37:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Sep 2009 11:37:54 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ghosh.debasish@gmail.com designates 209.85.210.193 as permitted sender) Received: from [209.85.210.193] (HELO mail-yx0-f193.google.com) (209.85.210.193) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Sep 2009 11:37:45 +0000 Received: by yxe31 with SMTP id 31so5089952yxe.29 for ; Tue, 15 Sep 2009 04:36:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=54tTpCsNAdT5LRbkQXQF8FxNN42D0+ASbHnekh8KQro=; b=qMPYfcvVJKozafCvrhBva/BETqRduORchJ0nnvTpRkGreqYG95SJ+YBcV4r50XZjrd VqenHckpVL4ZGtN/MiCtqrEXyaRCR/0nlJqmaO8noMPYI+a0tRvZydjYDPEJTi1pGD2v ksO+gSDcXN4FvJXhc7eWZizBOL+n0+t4526wY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:content-type; b=wQxEMN2BgaHsiShHfIDAv6Jy0I9J7LU/rwmH0QB4qdjC05ZalR2Qcacos4rNbE8HzC OZlErqLZbk91gYz5eN7r1Tp06/lkJVE8d1OGzQXjBDq/UvdtRC+a2855Ls1+TCzzLrnG eqdJjDz3V1wIPvsgr830gpghCQAJ3UgR8t72Y= MIME-Version: 1.0 Received: by 10.100.56.26 with SMTP id e26mr6778007ana.162.1253014584275; Tue, 15 Sep 2009 04:36:24 -0700 (PDT) Reply-To: dghosh@acm.org In-Reply-To: <8b1c89270909140337n79c378a7x1c8adfb6b8b4495b@mail.gmail.com> References: <8b1c89270909140337n79c378a7x1c8adfb6b8b4495b@mail.gmail.com> From: Debasish Ghosh Date: Tue, 15 Sep 2009 17:06:04 +0530 Message-ID: <8b1c89270909150436s58751273x29c559606c6caade@mail.gmail.com> Subject: Re: Problems with Query Server To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001485f7c3a231b58b04739c3138 X-Virus-Checked: Checked by ClamAV on apache.org --001485f7c3a231b58b04739c3138 Content-Type: text/plain; charset=ISO-8859-1 Some more info on the problems .. Using a source snapshot of 2009/04/23, all views and validations run fine with Erlang 12B as well as 13B. If I switch to the trunk, things become very very slow, so slow that I get process_timed_out. And for documents for which validation fails I get a 500 with the error that I describe in the previous mail below. This happens only for query servers - views and validations. After some benchmarking I find that the step which becomes so slow is the PUT of a document when I have a validation function associated with the design document. Without the validation function it runs quite fast and normal. Has there been any change recently that I need to take into account ? Any help will be appreciated .. Thanks. - Debasish On Mon, Sep 14, 2009 at 4:07 PM, Debasish Ghosh wrote: > Hi - > > I have implemented a View Server for Scala, which was working fine (with a > snapshot of April 2009) till I tried a recent snapshot from the trunk (and > Erlang R13B). It's a snapshot of today (Sep 14, 2009). I have the following > observations :- > > 1. The Views (map/reduce functions written in Scala) run absolutely ok even > now. Only noticeable change is that it has become very slow compared to the > earlier version. Noet that I am not running with lots of data either. > > 2. None of the validations work now. It runs absolutely ok with the earlier > version of CouchDB, which was being used with Erlang R12. Now I am getting a > 500 for most of the validations that have some logic with the following > exception : > {"error":"normal","reason":"{gen_server,call,\n > [couch_query_servers,\n > {ret_proc,{proc,<0.562.0>,<<\"scala\">>,\n > {couch_os_process,prompt},\n > {couch_os_process,set_timeout},\n > {couch_os_process,stop}}}]}"} > > 3. I am running Ubuntu .. sometimes, inconsistently I get a "connection > refused" error as well. But it is not consistent and may not come the next > time I run the same stuff. > > Any help will be appreciated. > > Thanks. > - Debasish > > --001485f7c3a231b58b04739c3138--