Couchbase .Net client crashes
Hello
I have experienced a lot of .Net client crashes on my server mainly when the load is high. The problem is that .Net client does not recover and freezes my Web application. I then have to recycle it in order to get a new client and continue.
Some of the errors i get from couchbase log are shown below. Is there any hint i can use to trace the problem? Jow i can protect the client from freezing?
=========================SUPERVISOR REPORT=========================
Supervisor: {local,'single_bucket_sup-default'}
Context: child_terminated
Reason: {{badmatch,{error,closed}},
[{mc_binary,quick_stats_recv,3},
{mc_binary,quick_stats_loop,5},
{mc_binary,quick_stats,5},
{ns_memcached,has_started,1},
{ns_memcached,handle_info,2},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}
Offender: [{pid,<0.398.0>},
{name,{ns_memcached,"default"}},
{mfargs,{ns_memcached,start_link,["default"]}},
{restart_type,permanent},
{shutdown,86400000},
{child_type,worker}]
[error_logger:error] [2012-12-06 2:01:08] [ns_1@127.0.0.1:error_logger:ale_error_logger_handler:log_msg:76] ** Generic server 'ns_memcached-default' terminating
** Last message in was check_started
** When Server state == {state,0,0,0,
{[],[]},
{[],[]},
{[],[]},
init,
{1354,751592,343000},
"default",#Port<0.5038>,
{interval,#Ref<0.0.0.1757>},
[{<0.447.0>,#Ref<0.0.0.210899>},
{<0.449.0>,#Ref<0.0.0.153935>},
{<0.450.0>,#Ref<0.0.0.2540>},
{<0.448.0>,#Ref<0.0.0.2538>}]}
** Reason for termination ==
** {{badmatch,{error,closed}},
[{mc_binary,quick_stats_recv,3},
{mc_binary,quick_stats_loop,5},
{mc_binary,quick_stats,5},
{ns_memcached,has_started,1},
{ns_memcached,handle_info,2},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}
=========================CRASH REPORT=========================
crasher:
initial call: ns_memcached:init/1
pid: <0.398.0>
registered_name: 'ns_memcached-default'
exception exit: {{badmatch,{error,closed}},
[{mc_binary,quick_stats_recv,3},
{mc_binary,quick_stats_loop,5},
{mc_binary,quick_stats,5},
{ns_memcached,has_started,1},
{ns_memcached,handle_info,2},
{gen_server,handle_msg,5},
{proc_lib,init_p_do_apply,3}]}
in function gen_server:terminate/6
ancestors: ['single_bucket_sup-default',<0.396.0>]
messages: []
links: [<0.447.0>,<0.449.0>,<0.450.0>,<0.448.0>,<0.64.0>,<0.397.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 46368
stack_size: 24
reductions: 2024474
neighbours:
neighbour: [{pid,<0.448.0>},
{registered_name,[]},
{initial_call,{erlang,apply,['Argument__1','Argument__2']}},
{current_function,{gen,do_call,4}},
{ancestors,['ns_memcached-default',
'single_bucket_sup-default',<0.396.0>]},
{messages,[]},
{links,[<0.398.0>,#Port<0.5445>]},
{dictionary,[]},
{trap_exit,false},
{status,waiting},
{heap_size,46368},
{stack_size,23},
{reductions,3770}]
neighbour: [{pid,<0.450.0>},
{registered_name,[]},
{initial_call,{erlang,apply,['Argument__1','Argument__2']}},
{current_function,{gen,do_call,4}},
{ancestors,['ns_memcached-default',
'single_bucket_sup-default',<0.396.0>]},
{messages,[]},
{links,[<0.398.0>,#Port<0.5446>]},
{dictionary,[]},
{trap_exit,false},
{status,waiting},
{heap_size,46368},
{stack_size,23},
{reductions,3770}]
neighbour: [{pid,<0.449.0>},
{registered_name,[]},
{initial_call,{erlang,apply,['Argument__1','Argument__2']}},
{current_function,{gen,do_call,4}},
{ancestors,['ns_memcached-default',
'single_bucket_sup-default',<0.396.0>]},
{messages,[]},
{links,[<0.398.0>,#Port<0.5442>]},
{dictionary,[]},
{trap_exit,false},
{status,waiting},
{heap_size,6765},
{stack_size,23},
{reductions,4555770}]
neighbour: [{pid,<0.447.0>},
{registered_name,[]},
{initial_call,{erlang,apply,['Argument__1','Argument__2']}},
{current_function,{gen,do_call,4}},
{ancestors,['ns_memcached-default',
'single_bucket_sup-default',<0.396.0>]},
{messages,[]},
{links,[<0.398.0>,#Port<0.5444>]},
{dictionary,[]},
{trap_exit,false},
{status,waiting},
{heap_size,6765},
{stack_size,23},
{reductions,8662657}]