Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 67859 invoked from network); 5 Aug 2010 20:26:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Aug 2010 20:26:43 -0000 Received: (qmail 17861 invoked by uid 500); 5 Aug 2010 20:26:41 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 17807 invoked by uid 500); 5 Aug 2010 20:26:41 -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 17799 invoked by uid 99); 5 Aug 2010 20:26:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Aug 2010 20:26:41 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: unknown (athena.apache.org: error in processing during lookup of dcaylor@fh.org) Received: from [74.125.82.54] (HELO mail-ww0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Aug 2010 20:26:36 +0000 Received: by wwb31 with SMTP id 31so4581208wwb.23 for ; Thu, 05 Aug 2010 13:26:14 -0700 (PDT) Received: by 10.227.136.146 with SMTP id r18mr9366062wbt.53.1281039973174; Thu, 05 Aug 2010 13:26:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.133.196 with HTTP; Thu, 5 Aug 2010 13:25:53 -0700 (PDT) In-Reply-To: References: From: David Caylor Date: Thu, 5 Aug 2010 13:25:53 -0700 Message-ID: Subject: Re: View Building Grinds System to Halt To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016368336f88b4d8e048d195cc0 --0016368336f88b4d8e048d195cc0 Content-Type: text/plain; charset=UTF-8 Did you run ldconfig after you set the xulrunner settings? I did that to myself last time I updated a Ubuntu box where I'd installed couchdb from source. I updated the xulrunner.conf, but forgot to run ldconfig, and got pretty much what you are describing. David Caylor On Wed, Aug 4, 2010 at 4:07 PM, Gordon Leland Hempton wrote: > After looking at the logs, it looks pretty bad: > > [Wed, 04 Aug 2010 22:57:28 GMT] [info] [<0.12883.0>] 127.0.0.1 - - 'GET' > > /trademark/_design/Trademark/_view/by_filingDate?limit=10&stale=ok&descending=true&include_docs=true > 200 > > [Wed, 04 Aug 2010 22:57:52 GMT] [error] [emulator] Error in process > <0.12957.0> with exit value: {badarg,[{erlang,binary_to_term,[<<1885695232 > > bytes>>]},{couch_file,pread_term,2},{couch_db,make_doc,5},{couch_db,open_doc_int,3},{couch_view_updater,load_doc,5},{couch_view_updater,'-update/2-fun-2-',8},{couch_btree,stream_kv_node2,8... > > Anyone know where to start? > > I am running Ubuntu 10.04 server with couchdb 1.0 installed from source. I > have made sure the xulrunner settings are correct. > > Thanks, > > On Wed, Aug 4, 2010 at 12:18 PM, Gordon Leland Hempton > wrote: > > > I am working with a database of ~10 mil docs and 30GB size. I am trying > to > > build a view consisting of a single field as the key and a null document. > > > > After creating the view and trying to access it, the couchdb beam.smp > > command eventually goes up to 12.3GB virtual memory and uses 3.7GB of > > physical memory. Memory is clearly the bottleneck as the CPU usage is > around > > 5-15%. My system only has 4GB of memory so naturally all this paging is > > slowing everything down to a crawl. > > > > After a few minutes this usage will go back down, but it will get to the > > same levels every time I access the view (which is still building and has > > been for 12 hours). > > > > Is this normal? How can I improve this? > > > > -- > > Gordon L. Hempton > > http://componentlab.com > > http://hempton.com > > > > > > -- > Gordon L. Hempton > http://componentlab.com > http://hempton.com > --0016368336f88b4d8e048d195cc0--