[ejabberd] ejabberd keeps crashing

Bill Omer bill.omer at gmail.com
Fri Dec 14 00:58:47 MSK 2007


I'm running the latest svn and trying to stress test with jabsimul.  I
posted yesterday with some questions on the performance.  Today
however, nothing seems to be working at all like it was yesterday.  I
do not know of anything thats been changed, but to trouble shoot this
I have deleted everything, recompiled and reinstalled and still
getting the same results.  After about 2000 connections, jabsimul gets
'connection refused' and the nodes are no longer listening to ports
5222/5269.  I'm using the default configuration files, only modified
the hosts line and the acl admin line.

Here's an output from my log.  Any help with this would be greatly
appreciated.    I can attach the entire log if that will help



=INFO REPORT==== 2007-12-13 16:47:45 ===
I(<0.242.0>:ejabberd_listener:102) : (#Port<0.292>) Failed TCP accept: emfile

=INFO REPORT==== 2007-12-13 16:47:45 ===
I(<0.242.0>:ejabberd_listener:102) : (#Port<0.292>) Failed TCP accept: emfile

=ERROR REPORT==== 2007-12-13 16:47:45 ===
Mnesia(ejabberd at ejabberddev03): ** ERROR ** (could not write core file: emfile)
 ** FATAL ** Cannot open log file
"/inet/recycler/ejabberd/beta/var/lib/ejabberd/db/ejabberd/PREVIOUS.LOG":
{file_error,


"/inet/recycler/ejabberd/beta/var/lib/ejabber
d/db/ejabberd/PREVIOUS.LOG",

                                         emfile}

=ERROR REPORT==== 2007-12-13 16:47:45 ===
** Generic server ejabberd_sm terminating
** Last message in was {mnesia_system_event,
                           {mnesia_down,ejabberd at ejabberddev02}}
** When Server state == {state}
** Reason for termination ==
** {node_not_running,ejabberd at ejabberddev03}

=INFO REPORT==== 2007-12-13 16:47:46 ===
    application: mnesia
    exited: shutdown
    type: temporary

=ERROR REPORT==== 2007-12-13 16:47:46 ===
E(<0.7036.0>:ejabberd_router:51) : {aborted,
                                       {no_exists,[route,"im2.domain.com"]}}
when processing: {{jid,"test_456",
                       "im2.domain.com",
                       "stressingser",
                       "test_456",
                       "im2.domain.com",
                       "stressingser"},
                  {jid,"test_3441",
                       "im2.domain.com",
                       [],
                       "test_3441",
                       "im2.domain.com",
                       []},
                  {xmlelement,"message",
                              [{"to","test_3441 at im2.domain.com"}],
                              [{xmlelement,
                                   "body",
                                   [],
                                   [{xmlcdata,
                                        <<"[1197582517918971 test_456
test_3441] Wiadomosc testowa krotka">>}]}]}}

=ERROR REPORT==== 2007-12-13 16:47:46 ===
Error in process <0.11539.0> on node 'ejabberd at ejabberddev03' with
exit value: {badarg,[{ets,lookup,[config,hosts]},{ejabberd_config,get_global_option,1},{ej
abberd_system_monitor,process_large_heap,2}]}


=INFO REPORT==== 2007-12-13 16:47:46 ===
I(<0.7880.0>:ejabberd_c2s:1266) :
({socket_state,gen_tcp,#Port<0.6215>,<0.7879.0>}) Close session for
test_2581 at im2.domain.com/stressingser

=ERROR REPORT==== 2007-12-13 16:47:46 ===
** State machine <0.7880.0> terminating
** Last event in was {xmlstreamelement,
                         {xmlelement,"presence",
                                     [],
                                     [{xmlelement,
                                          "status",
                                          [],
                                          [{xmlcdata,
                                               <<"Jezdem tera dostepny">>}]},
                                      {xmlelement,
                                          "show",
                                          [],
                                          [{xmlcdata,<<"chat">>}]}]}}
** When State == session_established
**      Data  == {state,{socket_state,gen_tcp,#Port<0.6215>,<0.7879.0>},
                        ejabberd_socket,
                        #Ref<0.0.0.37830>,
                        "600788610",
                        undefined,
                        c2s,
                        c2s_shaper,
                        false,
                        false,
                        false,
                        false,
                        [],
                        false,
                        {jid,"test_2581",
                             "im2.domain.com",
                             "stressingser",
                             "test_2581",
                             "im2.domain.com",
                             "stressingser"},
                        "test_2581",
                        "im2.domain.com",
                        "stressingser",
                        {{1197,582441,768356},<0.7880.0>},
                        {1,{{"test_2581","im2.domain.com",[]},nil,nil}},
                        {1,{{"test_2581","im2.domain.com",[]},nil,nil}},
                        {1,{{"test_2581","im2.domain.com",[]},nil,nil}},
                        {0,nil},
                        {dict,1,
                              16,
                              16,
                              8,
                              80,
                              48,
                              {[],
                               [],
                               [],
                               [],
                               [],
                               [],
                               [],
                               [],
                               [],
                               [],
                               [],
                               [],
                               [],
                               [],
                               [],
                               []},
                              {{[],
                                [],
                                [],
                                [[{"test_2581",
                                   "im2.domain.com",
                                   "stressingser"}|
                                  nothing]],
                                [],
                                [],
                                [],
                                [],
                                [],
                                [],
                                [],
                                [],
                                [],
                                [],
                                [],
                                []}}},
                        {xmlelement,"presence",
                                    [],
                                    [{xmlelement,
                                         "status",
                                         [],
                                         [{xmlcdata,<<"Online">>}]}]},
                        undefined,
                        undefined,
                        false,
                        {userlist,none,[]},
                        {{63,76,176,218},47674},
                        []}
** Reason for termination =
** {node_not_running,ejabberd at ejabberddev03}

=ERROR REPORT==== 2007-12-13 16:47:46 ===
E(<0.11467.0>:ejabberd_router:51) : {aborted,
                                        {no_exists,
                                            [route,"im2.domain.com"]}}
when processing: {{jid,"test_3002",
                       "im2.domain.com",
                       "stressingser",
                       "test_3002",
                       "im2.domain.com",
                       "stressingser"},
                  {jid,"test_3614",
                       "im2.domain.com",
                       [],
                       "test_3614",
                       "im2.domain.com",
                       []},
                  {xmlelement,"message",
                              [{"to","test_3614 at im2.domain.com"}],
                              [{xmlelement,
                                   "body",
                                   [],
                                   [{xmlcdata,
                                        <<"[1197582517946004 test_3002
test_3614] Wiadomosc testowa krotka">>}]}]}}

=INFO REPORT==== 2007-12-13 16:47:46 ===
    application: ejabberd
    exited: shutdown
    type: temporary


More information about the ejabberd mailing list