couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ulises Cervino Beresi (JIRA)" <>
Subject [jira] Created: (COUCHDB-179) CouchDB crashes when GETting view from a legacy DB
Date Fri, 19 Dec 2008 12:01:44 GMT
CouchDB crashes when GETting view from a legacy DB

                 Key: COUCHDB-179
             Project: CouchDB
          Issue Type: Bug
          Components: Database Core
    Affects Versions: 0.9
         Environment: uname -a
Linux dyc-ucbdesk 2.6.24-22-generic #1 SMP Mon Nov 24 19:35:06 UTC 2008 x86_64 GNU/Linux
Erlang (BEAM) emulator version 5.6.4 [source] [64-bit] [smp:2] [async-threads:0] [hipe] [kernel-poll:true]
Apache CouchDB 0.9.0a727978-incubating (LogLevel=info) is starting.
            Reporter: Ulises Cervino Beresi

Working with a legacy DB (which works just fine with version r725308) makes beam.smp use up
all the memory until it is killed by the kernel.

couchdb@dyc-ucbdesk:/opt/couchdb-trunk-dk-fix$ ./bin/couchdb -i
Erlang (BEAM) emulator version 5.6.4 [source] [64-bit] [smp:2] [async-threads:0] [hipe] [kernel-poll:true]

Eshell V5.6.4  (abort with ^G)
1> Apache CouchDB 0.9.0a727978-incubating (LogLevel=info) is starting.
[info] [<0.67.0>] Starting process for: action
Apache CouchDB has started. Time to relax.

1> SyntaxError: syntax error

Crash dump was written to: erl_crash.dump
eheap_alloc: Cannot allocate 1167696400 bytes of memory (of type "heap").

It looks like it tries to recompute the view on GETting it.


  function(doc) {
    emit(doc.timestamp, null);

DB size is .5G, avg doc size is 3M, doc structure:

 'text': 'long string ... really long',
 'id': 'my IDS',
 'timestamp': 'date' // e.g. 2008-12-13T03:51:57.732618

default.ini and local.ini for latest couchdb are not changed at all except for the DB dir

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message