couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Cottlehuber <...@jsonified.com>
Subject Re: Enomen error on building view
Date Mon, 08 Apr 2013 20:25:03 GMT
Weird. Even msdn agrees this is likely to be insufficient ram to spawn a
child process http://msdn.microsoft.com/en-us/library/5814770t.aspx so I
guess this is a RAM fragmentation problem, or you're exceeding ~ 2GB RAM
which is a fair bit. NB CouchDB on Windows is still using a 32-bit Erlang
VM; the 64-bit VM is only a year old.

Especially for windows you should upgrade to 1.2.2 (either erlang release
will do), e.g.
http://www.apache.org/dyn/closer.cgi?path=/couchdb/binary/win/1.2.2/setup-couchdb-1.2.2_R15B03-1.exeas
it nails a couple of critical security fixes.


Seeing as you can trigger the problem easily, can you

- run couch using the .couchdb.bat file
- turn debug mode on via `curl  -XPUT $COUCH/_config/log/level -d '"debug"'`
- use Process Explorer to get the virtual memory size before triggering the
issue
-  trigger it
- collect the same info

let us know how that works out + use a pastie service to put the couch.log
file somewhere. Ensure its clean and/or send me a link privately if you
prefer.

It's worth checking the system and application event log also in case they
shed some light.



On 8 April 2013 17:57, Mark Rollins <mark_rollins@hotmail.com> wrote:

> Windows 2008 R2 (x64)
> Couch DB 1.2.0
>
>
> Getting the following error when I touch a view in couch, have tried via
> the browser and curl, runs for a few minutes and then throws a enomen
> dialog box. The system has plenty of available memory.
>
> [Mon, 08 Apr 2013 14:04:16 GMT] [error] [<0.1702.0>]
> {error_report,<0.34.0>,
>                       {<0.1702.0>,crash_report,
>                        [[{initial_call,
>                           {couch_view_group,init,['Argument__1']}},
>                          {pid,<0.1702.0>},
>                          {registered_name,[]},
>                          {error_info,
>                           {exit,enomem,
>                            [{gen_server,terminate,6,
>                              [{file,"gen_server.erl"},{line,737}]},
>                             {proc_lib,init_p_do_apply,3,
>                              [{file,"proc_lib.erl"},{line,227}]}]}},
>                          {ancestors,[<0.1701.0>]},
>                          {messages,[]},
>                          {links,[<0.1703.0>,<0.127.0>]},
>                          {dictionary,[]},
>                          {trap_exit,true},
>                          {status,running},
>                          {heap_size,1597},
>                          {stack_size,24},
>                          {reductions,424}],
>                         []]}}
> [Mon, 08 Apr 2013 14:04:16 GMT] [error] [<0.145.0>] Uncaught server error:
> enomem
> [Mon, 08 Apr 2013 14:04:16 GMT] [error] [<0.1703.0>] ** Generic server
> <0.1703.0> terminating
> ** Last message in was {'EXIT',<0.1702.0>,enomem}
> ** When Server state ==
> {file,{file_descriptor,prim_file,{#Port<0.5001>,604}},
>                               54005900}
> ** Reason for termination ==
> ** enomem
>
> [Mon, 08 Apr 2013 14:04:16 GMT] [error] [<0.1703.0>]
> {error_report,<0.34.0>,
>                       {<0.1703.0>,crash_report,
>                        [[{initial_call,{couch_file,init,['Argument__1']}},
>                          {pid,<0.1703.0>},
>                          {registered_name,[]},
>                          {error_info,
>                           {exit,enomem,
>                            [{gen_server,terminate,6,
>                              [{file,"gen_server.erl"},{line,737}]},
>                             {proc_lib,init_p_do_apply,3,
>                              [{file,"proc_lib.erl"},{line,227}]}]}},
>                          {ancestors,[<0.1702.0>,<0.1701.0>]},
>                          {messages,[{'EXIT',<0.1705.0>,shutdown}]},
>                          {links,[]},
>                          {dictionary,[]},
>                          {trap_exit,true},
>                          {status,running},
>                          {heap_size,610},
>                          {stack_size,24},
>                          {reductions,1064}],
>                         []]}}

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message