gen_esme:bind_transceiver

Help
2011-04-29
2013-05-21
  • Arsénio Costa
    Arsénio Costa
    2011-04-29

    Im facing an issue with a trx connection, if the incomming and outgoing (submit_sm/deliver_sm) troughtput is high enough the gen_esme server crash's with a , which takes about 2 minutes to crash

    looking at the process_info of the gen_esme connection process i notice that the server is "loked" in some operation, here follows the sasl error report and process_info

    ERROR REPORT  <0.160.0>                                     2011-04-29 14:31:25
    ===============================================================================
    ** Generic server <0.160.0> terminating 
    ** Last message in was {'EXIT',<0.158.0>,
                            {timeout,
                             {gen_server,call,
                              [<0.158.0>,
                               {{submit_sm,
                                 [{short_message,
                                   [0,72,0,105,0,32,0,116,0,104,0,101,0,114,0,101,
                                    0,32,0,84,0,82,0,88]},
                                  {destination_addr,"351913768304"},
                                  {source_addr_ton,5},
                                  {source_addr,"7337"},
                                  {data_coding,8},
                                  {dest_addr_ton,1},
                                  {dest_addr_npi,1},
                                  {source_addr_npi,1},
                                  {registered_delivery,0},
                                  {priority_flag,0},
                                  {schedule_delivery_time,[]},
                                  {validity_period,[]}]},
                                [{uid,
                                  "8723648C5319FF0AB78864A5A6BD94A8F66DE233"}]},
                               120000]}}}
    ** When Server state == {st,<0.158.0>,undefined,12751,1083,
                                {1304,83762,900153}}
    ** Reason for termination == 
    ** {timeout,
           {gen_server,call,
               [<0.158.0>,
                {{submit_sm,
                     [{short_message,
                          [0,72,0,105,0,32,0,116,0,104,0,101,0,114,0,101,0,32,0,
                           84,0,82,0,88]},
                      {destination_addr,"351913768304"},
                      {source_addr_ton,5},
                      {source_addr,"7337"},
                      {data_coding,8},
                      {dest_addr_ton,1},
                      {dest_addr_npi,1},
                      {source_addr_npi,1},
                      {registered_delivery,0},
                      {priority_flag,0},
                      {schedule_delivery_time,[]},
                      {validity_period,[]}]},
                 [{uid,"8723648C5319FF0AB78864A5A6BD94A8F66DE233"}]},
                120000]}}
    ok
    (smpp_con@arsenio-desktop)135> rb:show(2).
    CRASH REPORT  <0.160.0>                                     2011-04-29 14:31:25
    ===============================================================================
    Crashing process                                                               
       initial_call                             {cl_queue_srv,init,['Argument__1']}
       pid                                                                <0.160.0>
       registered_name                                                           []
       error_info
             {exit,
                {timeout,
                    {gen_server,call,
                        [<0.158.0>,
                         {{submit_sm,
                              [{short_message,
                                   [0,72,0,105,0,32,0,116,0,104,0,101,0,114,0,
                                    101,0,32,0,84,0,82,0,88]},
                               {destination_addr,"351913768304"},
                               {source_addr_ton,5},
                               {source_addr,"7337"},
                               {data_coding,8},
                               {dest_addr_ton,1},
                               {dest_addr_npi,1},
                               {source_addr_npi,1},
                               {registered_delivery,0},
                               {priority_flag,0},
                               {schedule_delivery_time,[]},
                               {validity_period,[]}]},
                          [{uid,"8723648C5319FF0AB78864A5A6BD94A8F66DE233"}]},
                         120000]}},
                [{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}
       ancestors                      [smpp_connection,smpp_connector_sup,<0.51.0>]
       messages                                                                  []
       links                                                                     []
       dictionary                                                                []
       trap_exit                                                               true
       status                                                               running
       heap_size                                                              17711
       stack_size                                                                24
       reductions                                                          59200658
    ok
    (smpp_con@arsenio-desktop)136> erlang:process_info(erlang:whereis(smpp_connection)).
    [{registered_name,smpp_connection},
     {current_function,{gen,do_call,4}},
     {initial_call,{proc_lib,init_p,5}},
     {status,waiting},
     {message_queue_len,40},
     {messages,[{'$gen_call',{<0.10847.4>,#Ref<0.0.43.198005>},
                             {{submit_sm,[{short_message,[0,72,0,105,0,32,0,116,0,104,0|...]},
                                          {destination_addr,"351913768304"},
                                          {source_addr_ton,5},
                                          {source_addr,"7337"},
                                          {data_coding,8},
                                          {dest_addr_ton,1},
                                          {dest_addr_npi,1},
                                          {source_addr_npi,1},
                                          {registered_delivery,0},
                                          {priority_flag,0},
                                          {schedule_delivery_time,[]},
                                          {validity_period,[]}]},
                              [{uid,"F68E1631C5756718C4D2A0F7961069BD992D208"}]}},
                {'$gen_call',{<0.10848.4>,#Ref<0.0.43.198013>},
                             {{submit_sm,[{short_message,[0,72,0,105,0,32,0,116,0,104|...]},
                                          {destination_addr,"351913768304"},
                                          {source_addr_ton,5},
                                          {source_addr,"7337"},
                                          {data_coding,8},
                                          {dest_addr_ton,1},
                                          {dest_addr_npi,1},
                                          {source_addr_npi,1},
                                          {registered_delivery,0},
                                          {priority_flag,0},
                                          {schedule_delivery_time,[]},
                                          {validity_period,...}]},
                              [{uid,"E87007766E3D5E5AD6BB68835CBBEEAD5FB19237"}]}},
                {'$gen_call',{<0.10841.4>,#Ref<0.0.43.198016>},
                             {handle_deliver_sm,{5,0,22410,
                                                 [{short_message,"RE 2856249 19930922"},
                                                  {sm_default_msg_id,0},
                                                  {data_coding,0},
                                                  {replace_if_present_flag,0},
                                                  {registered_delivery,0},
                                                  {validity_period,[]},
                                                  {schedule_delivery_time,[]},
                                                  {priority_flag,...},
                                                  {...}|...]}}},
                {'$gen_call',{<0.10849.4>,#Ref<0.0.43.198019>},
                             {{submit_sm,[{short_message,[0,72,0,105,0,32,0,116|...]},
                                          {destination_addr,"351913768304"},
                                          {source_addr_ton,5},
                                          {source_addr,"7337"},
                                          {data_coding,8},
                                          {dest_addr_ton,1},
                                          {dest_addr_npi,1},
                                          {source_addr_npi,1},
                                          {registered_delivery,0},
                                          {priority_flag,...},
                                          {...}|...]},
                              [{uid,"3E0CBFEA73A8B709ACF1EE7D8FA8898E9859DD71"}]}},
                {'$gen_call',{<0.10845.4>,#Ref<0.0.43.198021>},
                             {{submit_sm,[{short_message,[0,72,0,105,0,32,0|...]},
                                          {destination_addr,"351913768304"},
                                          {source_addr_ton,5},
                                          {source_addr,"7337"},
                                          {data_coding,8},
                                          {dest_addr_ton,1},
                                          {dest_addr_npi,1},
                                          {source_addr_npi,1},
                                          {registered_delivery,...},
                                          {...}|...]},
                              [{uid,"C9352FD329A7C5FED4ECC9725BA52CE433E0DDB3"}]}},
                {'$gen_call',{<0.10850.4>,#Ref<0.0.43.198036>},
                             {{submit_sm,[{short_message,[0,72,0,105,0,32|...]},
                                          {destination_addr,"351913768304"},
                                          {source_addr_ton,5},
                                          {source_addr,"7337"},
                                          {data_coding,8},
                                          {dest_addr_ton,1},
                                          {dest_addr_npi,1},
                                          {source_addr_npi,...},
                                          {...}|...]},
                              [{uid,"5B07AFCB6EA1BE25CA1CCEC8925C6A1DA2AAB0F4"}]}},
                {'$gen_call',{<0.10851.4>,#Ref<0.0.43.198041>},
                             {{submit_sm,[{short_message,[0,72,0,105,0|...]},
                                          {destination_addr,"351913768304"},
                                          {source_addr_ton,5},
                                          {source_addr,"7337"},
                                          {data_coding,8},
                                          {dest_addr_ton,1},
                                          {dest_addr_npi,...},
                                          {...}|...]},
                              [{uid,"962DA498590F67AF868DDAC9F95A72E7D6640C17"}]}},
                {'$gen_call',{<0.10852.4>,#Ref<0.0.43.198046>},
                             {{submit_sm,[{short_message,[0,72,0,105|...]},
                                          {destination_addr,"351913768304"},
                                          {source_addr_ton,5},
                                          {source_addr,"7337"},
                                          {data_coding,8},
                                          {dest_addr_ton,...},
                                          {...}|...]},
                              [{uid,"8E1E1D7F548C82D443C98FDB6E4FFD50205DBB9F"}]}},
                {'$gen_call',{<0.10853.4>,#Ref<0.0.43.198051>},
                             {{submit_sm,[{short_message,[0,72,0|...]},
                                          {destination_addr,"351913768304"},
                                          {source_addr_ton,5},
                                          {source_addr,[...]},
                                          {data_coding,...},
                                          {...}|...]},
                              [{uid,"39974B8D22FEC1158E9B34D669BF781CC5794205"}]}},
                {'$gen_call',{<0.10854.4>,#Ref<0.0.43.198056>},
                             {{submit_sm,[{short_message,[0,72|...]},
                                          {destination_addr,"351913768304"},
                                          {source_addr_ton,5},
                                          {source_addr,...},
                                          {...}|...]},
                              [{uid,"8E8F476574C69BDBB2488F71E1876892BD320FB6"}]}},
                {'$gen_call',{<0.10855.4>,#Ref<0.0.43.198061>},
                             {{submit_sm,[{short_message,[0|...]},
                                          {destination_addr,[...]},
                                          {source_addr_ton,...},
                                          {...}|...]},
                              [{uid,"2A7DF716CED714200404E10324A90DCA183A49FD"}]}},
                {'$gen_call',{<0.10856.4>,#Ref<0.0.43.198066>},
                             {{submit_sm,[{short_message,[...]},
                                          {destination_addr,...},
                                          {...}|...]},
                              [{uid,"4969C8F1E1D21BA7604D9393B3624A6B1BA7B649"}]}},
                {'$gen_call',{<0.10857.4>,#Ref<0.0.43.198071>},
                             {{submit_sm,[{short_message,...},{...}|...]},[{uid,[...]}]}},
                {'$gen_call',{<0.10858.4>,#Ref<0.0.43.198076>},
                             {{submit_sm,[{...}|...]},[{uid,...}]}},
                {'$gen_call',{<0.10859.4>,#Ref<0.0.43.198081>},
                             {{submit_sm,[...]},[{...}]}},
                {'$gen_call',{<0.10860.4>,#Ref<0.0.43.198086>},
                             {{submit_sm,...},[...]}},
                {'$gen_call',{<0.10861.4>,#Ref<0.0.43.198091>},{{...},...}},
                {'$gen_call',{<0.10862.4>,...},{...}},
                {'$gen_call',{...},...},
                {'$gen_call',...},
                {...}|...]},
    
     
  • Arsénio Costa
    Arsénio Costa
    2011-04-29

    I need this for a production system for next month, and my SMSC provider only supports trx connections, i was using tr and rx connections with no problem with other SMSC's
    also i notice that this ony happens when receving and sending messages, if im only sending, or receiving this issues does not occur,
    Im using SMPPSim from logica as a simulator