couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Newson (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-1638) Memory overwhelming usage on attachment uploading when disk space ran out
Date Sun, 06 Jan 2013 22:12:12 GMT


Robert Newson commented on COUCHDB-1638:

Well, I guess it's debatable. However, using the 1.3 tag before 1.3 is out is misleading (since
it would only be true if we didn't fix this before release). I'm confident this affects earlier
versions anyway (and probably all of them).

> Memory overwhelming usage on attachment uploading when disk space ran out
> -------------------------------------------------------------------------
>                 Key: COUCHDB-1638
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>         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:

View raw message