[ 
https://issues.apache.org/jira/browse/COUCHDB-1490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13625048#comment-13625048
 ] 

Beano commented on COUCHDB-1490:
--------------------------------

I had the same problem on Ubuntu 12.10 with js 1.8.5. I think I've got a 
fix/patch. I found that adjusting the size of the javascript runtime via 
JS_NewRuntime fixed it for me. It is currently hard-coded to 64 megs. 

I added a command-line flag to couchjs with reference to this similar issue:

https://issues.apache.org/jira/browse/COUCHDB-893

I've only compiled and tested against js 1.8.5. I would be happy to contribute 
a patch but I'd need some guidance on how to go about doing this.
 
                
> Problems with views on large documents JSONs
> --------------------------------------------
>
>                 Key: COUCHDB-1490
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1490
>             Project: CouchDB
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Mac Os x 10.6.8, intel Architecture (x86_64), 8Gb of 
> Ram, Erlang R15B01 (erts-5.9.1)
>            Reporter: Francesco
>         Attachments: error.log
>
>
> Hi,
> i run a couchdb server (v1.2.0) over a mac (intel architecture, 8gb of ram,
> os x version 10.6.8) installed with brew.
> The server itself is used as a storage of big jsons (example: 
> https://raw.github.com/cvdlab-bio/webpdb/develop/docs/jsons/2LGB-pretty-print.json
>  and 
> https://raw.github.com/cvdlab-bio/webpdb/develop/docs/jsons/2CRK-pretty-print.json
>  ) for a tiny uni project.
> When we load more than 3 of these jsons, all the map functions (we created to 
> retrieve documents besides a simple get by id) does not work.
> A typical map is:
> function(doc){if(doc.TITLE.title.match('.*INSULIN.*') !== null) emit(doc.ID,
> doc);}
> but even a
> function(doc){emit(doc.ID, doc.ID)}
> cease to work.
> while when there are just 3 or 2 jsons in the database they work just fine. I 
> tried increasing the stack for couchjs (1gb now, going over 1gb doesn't work 
> it seems), increasing limits for files (4096), increasing timeout for 
> processes but in the end i don't get any results and only a (Error:
> os_process_error {exit_status,0}) from the db.

--
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

Reply via email to