Hi devs!
Following James mail about db and memory problems...
If someone interested, I can share candidate with badrecord_db error
problem (600 MB, ~30K docs) and forcing CouchDB consume whole system
memory (not always reproducible, but after few more requests to
db_info you may success) . Kept it for myself to play around on May
holidays. Logs are looks the next:
[Wed, 01 May 2013 10:25:40 GMT] [info] [<0.7500.2>] 127.0.0.1 - - GET
/crush/ 500
[Wed, 01 May 2013 10:25:40 GMT] [error] [<0.7500.2>] httpd 500 error response:
{"error":"{{badrecord,db},\n
[{couch_server,handle_info,2,[{file,\"couch_server.erl\"},{line,432}]},\n
{gen_server,handle_msg,5,[{file,\"gen_server.erl\"},{line,607}]},\n
{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,227}]}]}","reason":"{gen_server,call,\n
[couch_server,\n {open,<<\"crush\">>,\n [{user_ctx,\n
{user_ctx,<<\"root\">>,\n
[<<\"_admin\">>],\n <<\"{couch_httpd_auth,
cookie_authentication_handler}\">>}}]},\n infinity]}"}
... after few more requests to it ...
[Wed, 01 May 2013 10:32:46 GMT] [error] [<0.8604.2>] ** Generic server
<0.8604.2> terminating
** Last message in was {pread_iolist,575918292}
** When Server state == {file,{file_descriptor,prim_file,{#Port<0.3664>,52}},
604995704}
** Reason for termination ==
** {{badmatch,{ok,<<50,100,49,99,50,52,53,50,97,57,98,97,52,98,99,100,48,51,
53,52,98,55,52,5,62,24,249,220,104,3,97,6,97,1,62,4,74,
... dumping while 600 MB of db data, I suppose this is the root of
memory problem ...
0,0,0,0,1,0,0,0,115,17,199,148,157,22,157,255,164,186,33,
19,74,123,85,32,111,131,104,11,100,0,9,100,98,95,104,101,
97,100,101,114,97,6,98,0,1,79,73,97,0,104,3,98,34,83,208,
212,104,3,98,0,0,120,154,97,57,98,11,82,130,109,98,0,61,
49,38,104,3,98,34,83,217,117,98,0,0,120,211,98,0,29,22,
154,104,3,98,33,31,226,166,106,98,0,0,4,62,97,0,100,0,3,
110,105,108,100,0,3,110,105,108,98,0,0,3,232>>}},
[{couch_file,read_raw_iolist_int,3,[{file,"couch_file.erl"},{line,464}]},
{couch_file,maybe_read_more_iolist,4,
[{file,"couch_file.erl"},{line,454}]},
{couch_file,handle_call,3,[{file,"couch_file.erl"},{line,357}]},
{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,588}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}
Environment: Gentoo Linux, CouchDB 1.4.0+build.86cda7b, Erlang R15B03-1
--
,,,^..^,,,