Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 11712 invoked from network); 24 Mar 2008 22:47:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Mar 2008 22:47:40 -0000 Received: (qmail 41345 invoked by uid 500); 24 Mar 2008 22:47:39 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 41308 invoked by uid 500); 24 Mar 2008 22:47:38 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 41295 invoked by uid 99); 24 Mar 2008 22:47:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Mar 2008 15:47:38 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Mar 2008 22:46:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E0E80234C0A4 for ; Mon, 24 Mar 2008 15:45:27 -0700 (PDT) Message-ID: <2001532614.1206398727914.JavaMail.jira@brutus> Date: Mon, 24 Mar 2008 15:45:27 -0700 (PDT) From: "Christopher Lenz (JIRA)" To: couchdb-dev@incubator.apache.org Subject: [jira] Updated: (COUCHDB-25) Javascript view on big dataset crashes couchjs? In-Reply-To: <1890531745.1205020907623.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Lenz updated COUCHDB-25: ------------------------------------ Attachment: issue25.diff The problem is caused by a hard-coded branch limit in our SpiderMonkey wrapper, which was added to combat potential memory leaks. As this issue shows, that was a bad idea, as it breaks creating view indices over large datasets. Doh. The attached patch removes the branch limit, and also fixes a memory leak in the decoding of strings in the readline() function. Seems to work nicely here. > Javascript view on big dataset crashes couchjs? > ----------------------------------------------- > > Key: COUCHDB-25 > URL: https://issues.apache.org/jira/browse/COUCHDB-25 > Project: CouchDB > Issue Type: Bug > Components: JavaScript View Server > Reporter: Noah Slater > Assignee: Christopher Lenz > Priority: Minor > Attachments: issue25.diff > > > What steps will reproduce the problem? > Not entirely sure. I have been doing some testing with CouchDB, essentially > downloading messages from twitter for a few days and dumping them in a > database. I would attach the DB file, but it's like 120MB big. Then when I > run a simple view on it, even the simple: > function(doc) { > map(null, doc); > } > I get to see the following messages in the server log. Sometimes it works > though, so it seems kind of arbitrary: > ----- > [error] [emulator] Error in process <0.2776.1> with exit value: > {{nocatch,{map_process_error,{exit_status,0}}},[{couch_query_servers,readline,2},{couch_query_servers,read_json,1},{couch_query_servers,'-map_docs/2-fun-0-',2},{lists,map,2},{lists,map,2},{couch_query_servers,map_docs... > =ERROR REPORT==== 7-Mar-2008::15:45:48 === > Error in process <0.2776.1> with exit value: > {{nocatch,{map_process_error,{exit_status,0}}},[{couch_query_servers,readline,2},{couch_query_servers,read_json,1},{couch_query_servers,'-map_docs/2-fun-0-',2},{lists,map,2},{lists,map,2},{couch_query_servers,map_docs... > [info] [<0.2775.1>] HTTP Error (code 500): {obj,[{error,"map_process_error"}, > {reason,"{exit_status,0}"}]} > [info] [<0.2775.1>] HTTP Response Code:500 > ----- > What version of the product are you using? On what operating system? > This only occurs on the subversion trunk build on Ubuntu Linux 7.10. On the > current release version it works fine. > Please provide any additional information below. > > If you want the .couch files with which this happens, let me know. > -- > Okay, can you make the DB file available somehow and send me a link to it to cmlenz at gmx.de? I think it > should compress fairly well BTW. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.