Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 57179 invoked from network); 2 Jun 2010 18:18:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Jun 2010 18:18:06 -0000 Received: (qmail 21750 invoked by uid 500); 2 Jun 2010 18:18:05 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 21692 invoked by uid 500); 2 Jun 2010 18:18:05 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 21684 invoked by uid 99); 2 Jun 2010 18:18:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jun 2010 18:18:05 +0000 X-ASF-Spam-Status: No, hits=-1490.8 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jun 2010 18:18:04 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o52IHh2c012649 for ; Wed, 2 Jun 2010 18:17:44 GMT Message-ID: <16965778.138981275502663929.JavaMail.jira@thor> Date: Wed, 2 Jun 2010 14:17:43 -0400 (EDT) From: "Jan Lehnardt (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-784) Add non-buffering bulk_docs request API In-Reply-To: <16249891.138241275501099863.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan Lehnardt updated COUCHDB-784: --------------------------------- Summary: Add non-buffering bulk_docs request API (was: erlang crash on bulk upload of lots of documents) Issue Type: Improvement (was: Bug) Priority: Minor (was: Major) Component/s: Database Core HTTP Interface This is standard Erlang behaviour and works as intended. Erlang's philosophy is to crash hard and fast in error situations. If no more ram is available, what's a VM to do? Erlang & CouchDB are set up to restart instantly to avoid unnecessary downtimes (see `couchdb -i` for more information). -- The particular solution would be to reduce the bulk request until it doesn't exceed ram. -- Alternatively, we'd have to introduce a non-buffering JSON parser. Renaming the issue to track that (future) progress. > Add non-buffering bulk_docs request API > --------------------------------------- > > Key: COUCHDB-784 > URL: https://issues.apache.org/jira/browse/COUCHDB-784 > Project: CouchDB > Issue Type: Improvement > Components: Database Core, HTTP Interface > Affects Versions: 0.11 > Environment: windows 32 vista > Reporter: joe pribele > Priority: Minor > Attachments: erl_crash.dump, json.zip > > > Uploading 10,000 largish documents to the _bulk_docs results in a erlang crash trying to allocate a lot of heap memory -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.