You're running into the couchjs stack size limit, and the process is
being killed. The message is a little obscure, but this can happen with
large JSON docs. There is a good answer left by Kxepal here:
http://stackoverflow.com/questions/21273736/couchdb-views-os-process-error-big-documents
on how to increase this.
HTH,
Wendall
On 02/09/2015 06:38 PM, Luca Morandini wrote:
Dear CouchDB community,
I am trying to process a large JSON (~11MB) with a view, but this
operaiton fails:
[Fri, 07 Nov 2014 04:38:20 GMT] [info] [<0.3493.1>] Starting index
update for db: join88b760bd3b0346e09c7ca2d6c9a54215 idx: _design/join
[Fri, 07 Nov 2014 04:38:32 GMT] [error] [<0.3498.1>] OS Process Error
<0.3206.1> :: {os_process_error,
{exit_status,1}}
[Fri, 07 Nov 2014 04:38:34 GMT] [error] [emulator] Error in process
<0.3498.1> with exit value:
{{nocatch,{os_process_error,{exit_status,1}}},[{couch_os_process,prompt,2,[{file,"couch_os_process.erl"},{line,57}]},{couch_query_servers,map_doc_raw,2,[{file,"couch_query_servers.erl"},{line,88}]},{couch_mrview_updater,'-map_docs/2-fun-0-'...
I suppose Couchjs is finding itself short of memory: is this a
sensible hypothesis ?
If so, how can I increase the memory devoted to the JavaScript view
engine ?
Regards,
Luca Morandini
Data Architect - AURIN project
Melbourne eResearch Group
Department of Computing and Information Systems
University of Melbourne
Tel. +61 03 903 58 380
Skype: lmorandini