Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D230CDFD4 for ; Sun, 6 Jan 2013 21:44:14 +0000 (UTC) Received: (qmail 60258 invoked by uid 500); 6 Jan 2013 21:44:14 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 59969 invoked by uid 500); 6 Jan 2013 21:44:13 -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 59929 invoked by uid 99); 6 Jan 2013 21:44:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Jan 2013 21:44:12 +0000 Date: Sun, 6 Jan 2013 21:44:12 +0000 (UTC) From: "Alexander Shorin (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (COUCHDB-1638) Memory overwhelming usage on attachment uploading when disk space ran out 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-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexander Shorin updated COUCHDB-1638: -------------------------------------- Environment: Linux, no OOMKiller CouchDB 1.3.0a-88c52b2-git CouchDB 1.4.0a-4b20418-git Affects Version/s: 1.4 1.3 > Memory overwhelming usage on attachment uploading when disk space ran out > ------------------------------------------------------------------------- > > Key: COUCHDB-1638 > URL: https://issues.apache.org/jira/browse/COUCHDB-1638 > Project: CouchDB > Issue Type: Bug > Affects Versions: 1.3, 1.4 > Environment: Linux, no OOMKiller > CouchDB 1.3.0a-88c52b2-git > CouchDB 1.4.0a-4b20418-git > Reporter: Alexander Shorin > > Uploading attachment that is bigger than disk space that left for CouchDB data causes unstoppable memory consuming. For document updating in this case he just silently fails with {{badmatch,{error,enospc}} in logs. > Steps to reproduce: > 1. Simulate small disk. I've done it with next commands: > mkdir /var/lib/couchdb/sandbox > chown couchdb /var/lib/couchdb/sandbox > mount -t tmpfs -o size=20m tmpfs /var/lib/couchdb/sandbox > 2. Create database with name e.g. sandbox/deadman > 3. Create new document and upload attachment with size >=20MB > 4. watch free and get ready to kill CouchDB > As for me CouchDB may easily consume 8GB RAM and 3GB of swap for described above conditions. > Expected behaviour: not so fatal. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira