couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Lehnardt (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (COUCHDB-876) Runaway RAM usage with validate_doc_update and debug logging.
Date Sun, 17 Apr 2011 13:04:05 GMT

     [ https://issues.apache.org/jira/browse/COUCHDB-876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jan Lehnardt resolved COUCHDB-876.
----------------------------------

    Resolution: Won't Fix

I don't think this should be a supported configuration.

> Runaway RAM usage with validate_doc_update and debug logging.
> -------------------------------------------------------------
>
>                 Key: COUCHDB-876
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-876
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 1.0.1
>         Environment: trunk
>            Reporter: Paul Joseph Davis
>
> Using validate_doc_update and debug logging causes CouchDB to consume all available RAM.
> To reproduce:
> # edit local.ini (or local_dev.ini) to use debug logging
> # start couchdb
> $ curl -X PUT http://127.0.0.1:5984/foo
> $ curl -X PUT http://127.0.0.1:5984/testdb2/_design/foo -d '{"validate_doc_update":"function()
{}"}'
> $ dd if=/dev/zero of=test.mp3 bs=1024 count=20000
> $ openssl base64 -in test.mp3 -out test.mp3.b64 # On ubuntu, there's a base64 command
> $ echo "{\"hello\":\"" > test.json; echo `cat test.mp3.b64` >> test.json; echo
"\"}" >> test.json
> $ curl -X PUT http://127.0.0.1:5984/foo/bar -d @test.json

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message