esl / MongooseIM

MongooseIM is Erlang Solutions' robust, scalable and efficient XMPP server, aimed at large installations. Specifically designed for enterprise purposes, it is fault-tolerant and can utilise the resources of multiple clustered machines.
Other
1.64k stars 422 forks source link

After a few days of running in docker mongooseim stops responding but process lingers and no error message #1968

Closed andrewvmail closed 5 years ago

andrewvmail commented 5 years ago

MongooseIM version: 3.0.0-78-ge108c81 Installed from: mongooseim-docker (multistage) Erlang/OTP version: Erlang/OTP 20

Hello MongooseIM team,

Reporting something strange I am experiencing, happened twice now, after a few days of running mongoose in a container. mongooseim freezes no error message, i tried to dig around for an error message but i cant find any.

find . | grep crash.log gives me

./var/log/mongooseim/crash.log.2
./var/log/mongooseim/crash.log.4

which contains nothing

i tried to attach with ./bin/mongooseimctl but got node down

ps aux i still see

root        70  0.0 20.9 3139772 428104 pts/4  Sl+  Jul05   4:55 /usr/lib/mongooseim/erts-9.3/bin/beam.smp -K true -A 5 -P 10000000 -Bd -- -root /usr/lib/mongooseim -progname mongooseim -- -home /root -- -boot /usr/lib/mongooseim/releases/3.0.0/mongooseim -embedded -config /usr/lib/mongooseim/etc/app.config -sname mongooseim@chat-chat-1 -setcookie ejabberd -sasl sasl_error_logger false -- live --noshell -noshell -noinput
root        94  0.0  0.0   7540    88 ?        S    Jul05   0:03 /usr/lib/mongooseim/erts-9.3/bin/epmd -daemon

the mongoose process is started with this https://github.com/esl/mongooseim-docker/blob/master/member/start.sh

I'm running on a 2GB host and right now the docker stats out put:

CONTAINER ID        NAME                                            CPU %               MEM USAGE / LIMIT     MEM %               NET I/O             BLOCK I/O           PIDS
1ff46ce515c2        r-chat-chat-1-3d3c2bc8                          0.06%               420.4MiB / 1.953GiB   21.02%              0B / 0B             74.7MB / 3.02MB     46
d987e1bca777        r-healthcheck-healthcheck-4-52597050            0.18%               10.02MiB / 1.953GiB   0.50%               0B / 0B             5.9GB / 3.61MB      9
3746269f5693        r-ipsec-ipsec-router-4-a0435677                 0.01%               9.305MiB / 1.953GiB   0.47%               0B / 0B             8.59GB / 0B         26
63a4ec2b0420        r-ipsec-ipsec-connectivity-check-4-10d0d5bf     0.21%               12.07MiB / 1.953GiB   0.60%               0B / 0B             4.35GB / 0B         11
a2c2fac41000        r-chat-chat-riakkv-1-8c3bcf62                   3.94%               596.9MiB / 1.953GiB   29.84%              0B / 0B             9.81GB / 502MB      214
f8f44c75d8f1        r-network-services-metadata-dns-4-3585041b      0.00%               6.109MiB / 1.953GiB   0.31%               986MB / 63.9GB      2.35GB / 9.46MB     9
f50175fdd194        r-ipsec-ipsec-4-b6509331                        0.00%               84KiB / 1.953GiB      0.00%               0B / 0B             221kB / 0B          1
043211d9bac3        r-network-services-metadata-4-69679bca          0.55%               16.2MiB / 1.953GiB    0.81%               986MB / 63.9GB      7.03GB / 7.58MB     11
439266bd3800        r-network-services-network-manager-4-8c032776   0.19%               9.84MiB / 1.953GiB    0.49%               0B / 0B             7.53GB / 176kB      10
25bb3e24c840        r-chat-chat-mongoosepush-1-2df7f48d             0.10%               94.41MiB / 1.953GiB   4.72%               0B / 0B             4.18GB / 16.4kB     36
f2230323f206        r-ipsec-cni-driver-4-7adbd7be                   0.00%               104KiB / 1.953GiB     0.01%               0B / 0B             92.7MB / 0B         1
c3bd418779db        rancher-agent                                   0.05%               12.03MiB / 1.953GiB   0.60%               0B / 0B             5.46GB / 9.11MB     9

From the looks of this I think its not because of exhausted memory

the last thing mongooseim outputs to tty is


7/8/2018 3:15:19 AM from {jid,<<>>,<<"pubsub.somedomain.com">>,<<>>,<<>>,<<"pubsub.somedomain.com">>,<<>>}
7/8/2018 3:15:19 AM to {jid,<<"u16045524277">>,<<"somedomain.com">>,<<>>,<<"u16045524277">>,<<"somedomain.com">>,<<>>}
7/8/2018 3:15:19 AM packet #{attrs => [{<<"id">>,<<"B34E180D6F63"...>>},{<<"type">>,<<"result">>}],element => {xmlel,<<"iq">>,[{<<...>>,...},{...}],[{...}]},from => <<"pubsub.kosmosmob"...>>,from_jid => {jid,<<>>,<<...>>,...},mongoose_acc => true,name => <<"iq">>,ref => #Ref<0.2354893659.2305818626.30833>,...}
7/8/2018 3:15:19 AM10:15:19.507 [debug] routing done
7/8/2018 3:15:19 AM10:15:19.509 [debug] route
7/8/2018 3:15:19 AM from {jid,<<"u447405748367">>,<<"somedomain.com">>,<<>>,<<"u447405748367">>,<<"somedomain.com">>,<<>>}
7/8/2018 3:15:19 AM to {jid,<<>>,<<"pubsub.somedomain.com">>,<<>>,<<>>,<<"pubsub.somedomain.com">>,<<>>}
7/8/2018 3:15:19 AM packet #{element => {iq,<<>>,set,<<>>,<<>>,[{xmlel,<<"pubsub">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/pubsub">>}],[{xmlel,<<"publish">>,[{<<"node">>,<<"u447405748367">>}],[{xmlel,<<"item">>,[],[{xmlel,<<"notification">>,[{<<"xmlns">>,<<"urn:xmpp:push:0">>}],[{xmlel,<<"x">>,[{<<"xmlns">>,<<"jabber:x:data">>},{<<"type">>,<<"submit">>}],[{xmlel,<<"field">>,[{<<"var">>,<<"FORM_TYPE">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"urn:xmpp:push:summary">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"message-count">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"1">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"force-start">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"1">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"expiration">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"0">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"time_to_live">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"0">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"id">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"5c00be0a-0617-4e62-9d70-db955983e596">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"last-message-sender">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"0a608c17-c77b-4c88-b70f-2b75927a1486@muclight.somedomain.com/u447405748715@somedomain.com">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"last-message-body">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"ok">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"type">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"groupchat">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"sub_type">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"text">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"displayPhoto">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<>>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"coverPhoto">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<>>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"displayName">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<>>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"groupName">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<>>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"type">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"groupchat">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"thread">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>}]}]}]}]}]}]},{xmlel,<<"publish-options">>,[],[{xmlel,<<"x">>,[{<<"xmlns">>,<<"jabber:x:data">>},{<<"type">>,<<"submit">>}],[{xmlel,<<"field">>,[{<<"var">>,<<"FORM_TYPE">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"http://jabber.org/protocol/pubsub#publish-options">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"service">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"fcm">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"device_id">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"ehAenZgfwgA:APA91bES7Tc12jHEmBnoZoGQYJfkEB9u1AlgJEnfA_K5HO1snGR8XfR6gP1aY6wt3HmtMznNhsHhqgaXVeZX49wsy95BK5jKYwO4McdCWwaWZZdZzmB_ZhIiy8whtgheLXupC_3HEoXdTg7pgVbEjfzPf2hLXAw-ig">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"silent">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"true">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"topic">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"com.switch168.kosmos.voip">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"mode">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"dev">>}]}]}]}]}]}]},from => <<"u447405748367@somedomain.com">>,from_jid => {jid,<<"u447405748367">>,<<"somedomain.com">>,<<>>,<<"u447405748367">>,<<"somedomain.com">>,<<>>},mongoose_acc => true,name => <<"iq">>,ref => #Ref<0.2354893659.2305818626.30824>,timestamp => {1531,44919,503812},to => <<"pubsub.somedomain.com">>,to_jid => {jid,<<>>,<<"pubsub.somedomain.com">>,<<>>,<<>>,<<"pubsub.somedomain.com">>,<<>>},type => set}
7/8/2018 3:15:19 AM10:15:19.509 [debug] Using module mongoose_router_global
7/8/2018 3:15:19 AM10:15:19.509 [debug] filter passed
7/8/2018 3:15:19 AM10:15:19.509 [debug] routing skipped
7/8/2018 3:15:19 AM10:15:19.509 [debug] Using module mongoose_router_localdomain
7/8/2018 3:15:19 AM10:15:19.509 [debug] filter passed
7/8/2018 3:15:19 AM10:15:19.509 [debug] routing done
7/8/2018 3:15:19 AM10:15:19.509 [debug] tree_call <<"pubsub.somedomain.com">> get_node [<<"pubsub.somedomain.com">>,<<"u447405748367">>]
7/8/2018 3:15:19 AM10:15:19.509 [debug] Sent XML: <r xmlns='urn:xmpp:sm:3'/>
7/8/2018 3:15:19 AM10:15:19.510 [debug] node_call <<"push">> publish_item [<<"somedomain.com">>,5,{jid,<<"u447405748367">>,<<"somedomain.com">>,<<>>,<<"u447405748367">>,<<"somedomain.com">>,<<>>},open,1,<<"5FBAF777C64B">>,false,[{xmlel,<<"notification">>,[{<<"xmlns">>,<<"urn:xmpp:push:0">>}],[{xmlel,<<"x">>,[{<<"xmlns">>,<<"jabber:x:data">>},{<<"type">>,<<"submit">>}],[{xmlel,<<"field">>,[{<<"var">>,<<"FORM_TYPE">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"urn:xmpp:push:summary">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"message-count">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"1">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"force-start">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"1">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"expiration">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"0">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"time_to_live">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"0">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"id">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"5c00be0a-0617-4e62-9d70-db955983e596">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"last-message-sender">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"0a608c17-c77b-4c88-b70f-2b75927a1486@muclight.somedomain.com/u447405748715@somedomain.com">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"last-message-body">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"ok">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"type">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"groupchat">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"sub_type">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"text">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"displayPhoto">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<>>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"coverPhoto">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<>>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"displayName">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<>>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"groupName">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<>>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"type">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"groupchat">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"thread">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>}]}]}]}]}],{xmlel,<<"x">>,[{<<"xmlns">>,<<"jabber:x:data">>},{<<"type">>,<<"submit">>}],[{xmlel,<<"field">>,[{<<"var">>,<<"FORM_TYPE">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"http://jabber.org/protocol/pubsub#publish-options">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"service">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"fcm">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"device_id">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"ehAenZgfwgA:APA91bES7Tc12jHEmBnoZoGQYJfkEB9u1AlgJEnfA_K5HO1snGR8XfR6gP1aY6wt3HmtMznNhsHhqgaXVeZX49wsy95BK5jKYwO4McdCWwaWZZdZzmB_ZhIiy8whtgheLXupC_3HEoXdTg7pgVbEjfzPf2hLXAw-ig">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"silent">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"true">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"topic">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"com.switch168.kosmos.voip">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"mode">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"dev">>}]}]}]}]
7/8/2018 3:15:19 AM10:15:19.511 [debug] push_notifications {[#{<<"coverPhoto">> => <<>>,<<"displayName">> => <<>>,<<"displayPhoto">> => <<>>,<<"expiration">> => <<"0">>,<<"force-start">> => <<"1">>,<<"groupName">> => <<>>,<<"id">> => <<"5c00be0a-0617-4e62-9d70-db955983e596">>,<<"last-message-body">> => <<"ok">>,<<"last-message-sender">> => <<"0a608c17-c77b-4c88-b70f-2b75927a1486@muclight.somedomain.com/u447405748715@somedomain.com">>,<<"message-count">> => <<"1">>,<<"sub_type">> => <<"text">>,<<"thread">> => <<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"time_to_live">> => <<"0">>,<<"type">> => <<"groupchat">>}],#{<<"device_id">> => <<"ehAenZgfwgA:APA91bES7Tc12jHEmBnoZoGQYJfkEB9u1AlgJEnfA_K5HO1snGR8XfR6gP1aY6wt3HmtMznNhsHhqgaXVeZX49wsy95BK5jKYwO4McdCWwaWZZdZzmB_ZhIiy8whtgheLXupC_3HEoXdTg7pgVbEjfzPf2hLXAw-ig">>,<<"mode">> => <<"dev">>,<<"service">> => <<"fcm">>,<<"silent">> => <<"true">>,<<"topic">> => <<"com.switch168.kosmos.voip">>}}
7/8/2018 3:15:19 AM10:15:19.512 [debug] route
7/8/2018 3:15:19 AM from {jid,<<>>,<<"pubsub.somedomain.com">>,<<>>,<<>>,<<"pubsub.somedomain.com">>,<<>>}
7/8/2018 3:15:19 AM to {jid,<<"u447405748367">>,<<"somedomain.com">>,<<>>,<<"u447405748367">>,<<"somedomain.com">>,<<>>}
7/8/2018 3:15:19 AM packet #{attrs => [{<<"id">>,<<"3EDE797D68550E5C">>},{<<"type">>,<<"result">>}],element => {xmlel,<<"iq">>,[{<<"id">>,<<"3EDE797D68550E5C">>},{<<"type">>,<<"result">>}],[{xmlel,<<"pubsub">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/pubsub">>}],[{xmlel,<<"publish">>,[{<<"node">>,<<"u447405748367">>}],[{xmlel,<<"item">>,[{<<"id">>,<<"5FBAF777C64B">>}],[]}]}]}]},from => <<"pubsub.somedomain.com">>,from_jid => {jid,<<>>,<<"pubsub.somedomain.com">>,<<>>,<<>>,<<"pubsub.somedomain.com">>,<<>>},mongoose_acc => true,name => <<"iq">>,ref => #Ref<0.2354893659.2305818626.30853>,timestamp => {1531,44919,511936},to => <<"u447405748367@somedomain.com">>,to_jid => {jid,<<"u447405748367">>,<<"somedomain.com">>,<<>>,<<"u447405748367">>,<<"somedomain.com">>,<<>>},type => <<"result">>}
7/8/2018 3:15:19 AM10:15:19.513 [debug] Using module mongoose_router_global
7/8/2018 3:15:19 AM10:15:19.513 [debug] filter passed
7/8/2018 3:15:19 AM10:15:19.513 [debug] routing skipped
7/8/2018 3:15:19 AM10:15:19.513 [debug] Using module mongoose_router_localdomain
7/8/2018 3:15:19 AM10:15:19.513 [debug] filter passed
7/8/2018 3:15:19 AM10:15:19.513 [debug] local route
7/8/2018 3:15:19 AM from {jid,<<>>,<<"pubsub.somedomain.com">>,<<>>,<<>>,<<"pubsub.somedomain.com">>,<<>>}
7/8/2018 3:15:19 AM to {jid,<<"u447405748367">>,<<"somedomain.com">>,<<>>,<<"u447405748367">>,<<"somedomain.com">>,<<>>}
7/8/2018 3:15:19 AM packet {xmlel,<<"iq">>,[{<<"id">>,<<"3EDE"...>>},{<<"type">>,<<...>>}],[{xmlel,<<...>>,...}]}
7/8/2018 3:15:19 AM10:15:19.514 [debug] session manager
7/8/2018 3:15:19 AM from {jid,<<>>,<<"pubsub.somedomain.com">>,<<>>,<<>>,<<"pubsub.somedomain.com">>,<<>>}
7/8/2018 3:15:19 AM to {jid,<<"u447405748367">>,<<"somedomain.com">>,<<>>,<<"u447405748367">>,<<"somedomain.com">>,<<>>}
7/8/2018 3:15:19 AM packet #{attrs => [{<<"id">>,<<"3EDE797D6855"...>>},{<<"type">>,<<"result">>}],element => {xmlel,<<"iq">>,[{<<...>>,...},{...}],[{...}]},from => <<"pubsub.kosmosmob"...>>,from_jid => {jid,<<>>,<<...>>,...},mongoose_acc => true,name => <<"iq">>,ref => #Ref<0.2354893659.2305818626.30853>,...}
7/8/2018 3:15:19 AM10:15:19.514 [debug] routing done
7/8/2018 3:15:19 AM10:15:19.531 [debug] Received: <<"<r xmlns=\"urn:xmpp:sm:3\"/>">>
7/8/2018 3:15:19 AM10:15:19.532 [debug] Sent XML: <a xmlns='urn:xmpp:sm:3' h='549'/>
7/8/2018 3:15:19 AM10:15:19.546 [debug] Received: <<"<a xmlns=\"urn:xmpp:sm:3\" h=\"480\"/>">>
7/8/2018 3:15:27 AM10:15:27.538 [debug] Received: <<"<r xmlns=\"urn:xmpp:sm:3\"/>">>
7/8/2018 3:15:27 AM10:15:27.539 [debug] Sent XML: <a xmlns='urn:xmpp:sm:3' h='549'/>
7/8/2018 3:15:27 AM10:15:27.540 [debug] Received: <<"<message xmlns=\"jabber:client\" id=\"d44c8516-f4a3-4be2-aca6-de7e4067d108\" from=\"u447405748715@somedomain.com\" to=\"0a608c17-c77b-4c88-b70f-2b75927a1486@muclight.somedomain.com\" type=\"groupchat\"><body>momo</body><thread>0a608c17-c77b-4c88-b70f-2b75927a1486</thread><kosmos xmlns=\"kosmos\" type=\"text\"/></message>">>
7/8/2018 3:15:27 AM10:15:27.541 [debug] route
7/8/2018 3:15:27 AM from {jid,<<"u447405748715">>,<<"somedomain.com">>,<<"37239bcc3a0a4437b907e55f9617e7a6">>,<<"u447405748715">>,<<"somedomain.com">>,<<"37239bcc3a0a4437b907e55f9617e7a6">>}
7/8/2018 3:15:27 AM to {jid,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<>>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<>>}
7/8/2018 3:15:27 AM packet #{attrs => [{<<"xml:lang">>,<<"en">>},{<<"id">>,<<"d44c8516-f4a3-4be2-aca6-de7e4067d108">>},{<<"from">>,<<"u447405748715@somedomain.com">>},{<<"to">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486@muclight.somedomain.com">>},{<<"type">>,<<"groupchat">>}],element => {xmlel,<<"message">>,[{<<"xml:lang">>,<<"en">>},{<<"id">>,<<"d44c8516-f4a3-4be2-aca6-de7e4067d108">>},{<<"from">>,<<"u447405748715@somedomain.com">>},{<<"to">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486@muclight.somedomain.com">>},{<<"type">>,<<"groupchat">>}],[{xmlel,<<"body">>,[],[{xmlcdata,<<"momo">>}]},{xmlel,<<"thread">>,[],[{xmlcdata,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>}]},{xmlel,<<"kosmos">>,[{<<"xmlns">>,<<"kosmos">>},{<<"type">>,<<"text">>}],[]}]},from => <<"u447405748715@somedomain.com/37239bcc3a0a4437b907e55f9617e7a6">>,from_jid => {jid,<<"u447405748715">>,<<"somedomain.com">>,<<"37239bcc3a0a4437b907e55f9617e7a6">>,<<"u447405748715">>,<<"somedomain.com">>,<<"37239bcc3a0a4437b907e55f9617e7a6">>},mongoose_acc => true,name => <<"message">>,persistent_properties => [{origin_jid,{jid,<<"u447405748715">>,<<"somedomain.com">>,<<"37239bcc3a0a4437b907e55f9617e7a6">>,<<"u447405748715">>,<<"somedomain.com">>,<<"37239bcc3a0a4437b907e55f9617e7a6">>}},{origin_sid,{{1531,44081,386035},<0.12489.2>}}],ref => #Ref<0.2354893659.2305818626.30903>,result => allow,server => <<"somedomain.com">>,timestamp => {1531,44927,540859},to => <<"0a608c17-c77b-4c88-b70f-2b75927a1486@muclight.somedomain.com">>,to_jid => {jid,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<>>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<>>},type => <<"groupchat">>,user => <<"u447405748715">>,{cached_privacy_check,<<"somedomain.com">>,<<"u447405748715">>,<<"u447405748715@somedomain.com/37239bcc3a0a4437b907e55f9617e7a6">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486@muclight.somedomain.com">>,<<"message">>,<<"groupchat">>,out} => allow}
7/8/2018 3:15:27 AM10:15:27.541 [debug] Using module mongoose_router_global
7/8/2018 3:15:27 AM10:15:27.542 [debug] filter passed
7/8/2018 3:15:27 AM10:15:27.542 [debug] routing skipped
7/8/2018 3:15:27 AM10:15:27.542 [debug] Using module mongoose_router_localdomain
7/8/2018 3:15:27 AM10:15:27.542 [debug] filter passed
7/8/2018 3:15:27 AM10:15:27.542 [debug] route
7/8/2018 3:15:27 AM from {jid,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>}
7/8/2018 3:15:27 AM to {jid,<<"u16045524277">>,<<"somedomain.com">>,<<>>,<<"u16045524277">>,<<"somedomain.com">>,<<>>}
7/8/2018 3:15:27 AM packet #{attrs => [{<<"to">>,<<"u16045524277@somedomain.com">>},{<<"id">>,<<"d44c8516-f4a3-4be2-aca6-de7e4067d108">>},{<<"type">>,<<"groupchat">>},{<<"from">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486@muclight.somedomain.com/u447405748715@somedomain.com">>}],element => {xmlel,<<"message">>,[{<<"to">>,<<"u16045524277@somedomain.com">>},{<<"id">>,<<"d44c8516-f4a3-4be2-aca6-de7e4067d108">>},{<<"type">>,<<"groupchat">>},{<<"from">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486@muclight.somedomain.com/u447405748715@somedomain.com">>}],[{xmlel,<<"body">>,[],[{xmlcdata,<<"momo">>}]},{xmlel,<<"thread">>,[],[{xmlcdata,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>}]},{xmlel,<<"kosmos">>,[{<<"xmlns">>,<<"kosmos">>},{<<"type">>,<<"text">>}],[]}]},from => <<"0a608c17-c77b-4c88-b70f-2b75927a1486@muclight.somedomain.com/u447405748715@somedomain.com">>,from_jid => {jid,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>},mongoose_acc => true,name => <<"message">>,ref => #Ref<0.2354893659.2305818626.30906>,timestamp => {1531,44927,542181},to => <<"u16045524277@somedomain.com">>,to_jid => {jid,<<"u16045524277">>,<<"somedomain.com">>,<<>>,<<"u16045524277">>,<<"somedomain.com">>,<<>>},type => <<"groupchat">>}
7/8/2018 3:15:27 AM10:15:27.543 [debug] Using module mongoose_router_global
7/8/2018 3:15:27 AM10:15:27.543 [debug] filter passed
7/8/2018 3:15:27 AM10:15:27.543 [debug] routing skipped
7/8/2018 3:15:27 AM10:15:27.543 [debug] Using module mongoose_router_localdomain
7/8/2018 3:15:27 AM10:15:27.543 [debug] filter passed
7/8/2018 3:15:27 AM10:15:27.543 [debug] Handle push notification {{jid,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>},{jid,<<"u16045524277">>,<<"somedomain.com">>,<<>>,<<"u16045524277">>,<<"somedomain.com">>,<<>>},{xmlel,<<"message">>,[{<<"to">>,<<"u16045524277@somedomain.com">>},{<<"id">>,<<"d44c8516-f4a3-4be2-aca6-de7e4067d108">>},{<<"type">>,<<"groupchat">>},{<<"from">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486@muclight.somedomain.com/u447405748715@somedomain.com">>}],[{xmlel,<<"body">>,[],[{xmlcdata,<<"momo">>}]},{xmlel,<<"thread">>,[],[{xmlcdata,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>}]},{xmlel,<<"kosmos">>,[{<<"xmlns">>,<<"kosmos">>},{<<"type">>,<<"text">>}],[]}]}}
7/8/2018 3:15:27 AM10:15:27.544 [debug] local route
7/8/2018 3:15:27 AM from {jid,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>}
7/8/2018 3:15:27 AM to {jid,<<"u16045524277">>,<<"somedomain.com">>,<<>>,<<"u16045524277">>,<<"somedomain.com">>,<<>>}
7/8/2018 3:15:27 AM packet {xmlel,<<"message">>,[{<<"to">>,<<"u177"...>>},{<<"id">>,<<...>>},{<<...>>,...},{...}],[{xmlel,<<...>>,...},{xmlel,...},{...}]}
7/8/2018 3:15:27 AM10:15:27.544 [debug] session manager
7/8/2018 3:15:27 AM from {jid,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>}
7/8/2018 3:15:27 AM to {jid,<<"u16045524277">>,<<"somedomain.com">>,<<>>,<<"u16045524277">>,<<"somedomain.com">>,<<>>}
7/8/2018 3:15:27 AM packet #{attrs => [{<<"to">>,<<"u16045524277"...>>},{<<"id">>,<<"d44c8516"...>>},{<<"type">>,<<"grou"...>>},{<<"from">>,<<...>>}],element => {xmlel,<<"message">>,[{<<...>>,...},{...}|...],[{...}|...]},from => <<"0a608c17-c77b-4c"...>>,from_jid => {jid,<<"0a60"...>>,<<...>>,...},mongoose_acc => true,name => <<"mess"...>>,ref => #Ref<0.2354893659.2305818626.30906>,...}
7/8/2018 3:15:27 AM10:15:27.544 [debug] routing done
7/8/2018 3:15:27 AM10:15:27.545 [debug] route
7/8/2018 3:15:27 AM from {jid,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>}
7/8/2018 3:15:27 AM to {jid,<<"u447405748367">>,<<"somedomain.com">>,<<>>,<<"u447405748367">>,<<"somedomain.com">>,<<>>}
7/8/2018 3:15:27 AM packet #{attrs => [{<<"to">>,<<"u447405748367@somedomain.com">>},{<<"id">>,<<"d44c8516-f4a3-4be2-aca6-de7e4067d108">>},{<<"type">>,<<"groupchat">>},{<<"from">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486@muclight.somedomain.com/u447405748715@somedomain.com">>}],element => {xmlel,<<"message">>,[{<<"to">>,<<"u447405748367@somedomain.com">>},{<<"id">>,<<"d44c8516-f4a3-4be2-aca6-de7e4067d108">>},{<<"type">>,<<"groupchat">>},{<<"from">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486@muclight.somedomain.com/u447405748715@somedomain.com">>}],[{xmlel,<<"body">>,[],[{xmlcdata,<<"momo">>}]},{xmlel,<<"thread">>,[],[{xmlcdata,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>}]},{xmlel,<<"kosmos">>,[{<<"xmlns">>,<<"kosmos">>},{<<"type">>,<<"text">>}],[]}]},from => <<"0a608c17-c77b-4c88-b70f-2b75927a1486@muclight.somedomain.com/u447405748715@somedomain.com">>,from_jid => {jid,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>},mongoose_acc => true,name => <<"message">>,ref => #Ref<0.2354893659.2305818626.30914>,timestamp => {1531,44927,544636},to => <<"u447405748367@somedomain.com">>,to_jid => {jid,<<"u447405748367">>,<<"somedomain.com">>,<<>>,<<"u447405748367">>,<<"somedomain.com">>,<<>>},type => <<"groupchat">>}
7/8/2018 3:15:27 AM10:15:27.546 [debug] Using module mongoose_router_global
7/8/2018 3:15:27 AM10:15:27.546 [debug] filter passed
7/8/2018 3:15:27 AM10:15:27.546 [debug] routing skipped
7/8/2018 3:15:27 AM10:15:27.546 [debug] Using module mongoose_router_localdomain
7/8/2018 3:15:27 AM10:15:27.546 [debug] filter passed
7/8/2018 3:15:27 AM10:15:27.546 [debug] Handle push notification {{jid,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>},{jid,<<"u447405748367">>,<<"somedomain.com">>,<<>>,<<"u447405748367">>,<<"somedomain.com">>,<<>>},{xmlel,<<"message">>,[{<<"to">>,<<"u447405748367@somedomain.com">>},{<<"id">>,<<"d44c8516-f4a3-4be2-aca6-de7e4067d108">>},{<<"type">>,<<"groupchat">>},{<<"from">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486@muclight.somedomain.com/u447405748715@somedomain.com">>}],[{xmlel,<<"body">>,[],[{xmlcdata,<<"momo">>}]},{xmlel,<<"thread">>,[],[{xmlcdata,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>}]},{xmlel,<<"kosmos">>,[{<<"xmlns">>,<<"kosmos">>},{<<"type">>,<<"text">>}],[]}]}}
7/8/2018 3:15:27 AM10:15:27.547 [debug] route
7/8/2018 3:15:27 AM from {jid,<<"u16045524277">>,<<"somedomain.com">>,<<>>,<<"u16045524277">>,<<"somedomain.com">>,<<>>}
7/8/2018 3:15:27 AM to {jid,<<>>,<<"pubsub.somedomain.com">>,<<>>,<<>>,<<"pubsub.somedomain.com">>,<<>>}
7/8/2018 3:15:27 AM packet #{element => {iq,<<>>,set,<<>>,<<>>,[{xmlel,<<"pubsub">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/pubsub">>}],[{xmlel,<<"publish">>,[{<<"node">>,<<"u16045524277">>}],[{xmlel,<<"item">>,[],[{xmlel,<<"notification">>,[{<<"xmlns">>,<<"urn:xmpp:push:0">>}],[{xmlel,<<"x">>,[{<<"xmlns">>,<<"jabber:x:data">>},{<<"type">>,<<"submit">>}],[{xmlel,<<"field">>,[{<<"var">>,<<"FORM_TYPE">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"urn:xmpp:push:summary">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"message-count">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"1">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"force-start">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"1">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"expiration">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"0">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"time_to_live">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"0">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"id">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"d44c8516-f4a3-4be2-aca6-de7e4067d108">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"last-message-sender">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"0a608c17-c77b-4c88-b70f-2b75927a1486@muclight.somedomain.com/u447405748715@somedomain.com">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"last-message-body">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"momo">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"type">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"groupchat">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"sub_type">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"text">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"displayPhoto">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<>>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"coverPhoto">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<>>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"displayName">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<>>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"groupName">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<>>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"type">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"groupchat">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"thread">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>}]}]}]}]}]}]},{xmlel,<<"publish-options">>,[],[{xmlel,<<"x">>,[{<<"xmlns">>,<<"jabber:x:data">>},{<<"type">>,<<"submit">>}],[{xmlel,<<"field">>,[{<<"var">>,<<"FORM_TYPE">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"http://jabber.org/protocol/pubsub#publish-options">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"service">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"fcm">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"device_id">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"ehAenZgfwgA:APA91bES7Tc12jHEmBnoZoGQYJfkEB9u1AlgJEnfA_K5HO1snGR8XfR6gP1aY6wt3HmtMznNhsHhqgaXVeZX49wsy95BK5jKYwO4McdCWwaWZZdZzmB_ZhIiy8whtgheLXupC_3HEoXdTg7pgVbEjfzPf2hLXAw-ig">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"silent">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"true">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"topic">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"com.switch168.kosmos.voip">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"mode">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"dev">>}]}]}]}]}]}]},from => <<"u16045524277@somedomain.com">>,from_jid => {jid,<<"u16045524277">>,<<"somedomain.com">>,<<>>,<<"u16045524277">>,<<"somedomain.com">>,<<>>},mongoose_acc => true,name => <<"iq">>,ref => #Ref<0.2354893659.2305818626.30909>,timestamp => {1531,44927,543723},to => <<"pubsub.somedomain.com">>,to_jid => {jid,<<>>,<<"pubsub.somedomain.com">>,<<>>,<<>>,<<"pubsub.somedomain.com">>,<<>>},type => set}
7/8/2018 3:15:27 AM10:15:27.547 [debug] Using module mongoose_router_global
7/8/2018 3:15:27 AM10:15:27.547 [debug] filter passed
7/8/2018 3:15:27 AM10:15:27.547 [debug] routing skipped
7/8/2018 3:15:27 AM10:15:27.547 [debug] Using module mongoose_router_localdomain
7/8/2018 3:15:27 AM10:15:27.547 [debug] filter passed
7/8/2018 3:15:27 AM10:15:27.547 [debug] routing done
7/8/2018 3:15:27 AM10:15:27.547 [debug] tree_call <<"pubsub.somedomain.com">> get_node [<<"pubsub.somedomain.com">>,<<"u16045524277">>]
7/8/2018 3:15:27 AM10:15:27.549 [debug] node_call <<"push">> publish_item [<<"somedomain.com">>,2,{jid,<<"u16045524277">>,<<"somedomain.com">>,<<>>,<<"u16045524277">>,<<"somedomain.com">>,<<>>},open,1,<<"5FBAF7F85BAE">>,false,[{xmlel,<<"notification">>,[{<<"xmlns">>,<<"urn:xmpp:push:0">>}],[{xmlel,<<"x">>,[{<<"xmlns">>,<<"jabber:x:data">>},{<<"type">>,<<"submit">>}],[{xmlel,<<"field">>,[{<<"var">>,<<"FORM_TYPE">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"urn:xmpp:push:summary">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"message-count">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"1">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"force-start">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"1">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"expiration">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"0">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"time_to_live">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"0">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"id">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"d44c8516-f4a3-4be2-aca6-de7e4067d108">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"last-message-sender">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"0a608c17-c77b-4c88-b70f-2b75927a1486@muclight.somedomain.com/u447405748715@somedomain.com">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"last-message-body">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"momo">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"type">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"groupchat">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"sub_type">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"text">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"displayPhoto">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<>>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"coverPhoto">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<>>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"displayName">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<>>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"groupName">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<>>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"type">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"groupchat">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"thread">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>}]}]}]}]}],{xmlel,<<"x">>,[{<<"xmlns">>,<<"jabber:x:data">>},{<<"type">>,<<"submit">>}],[{xmlel,<<"field">>,[{<<"var">>,<<"FORM_TYPE">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"http://jabber.org/protocol/pubsub#publish-options">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"service">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"fcm">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"device_id">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"ehAenZgfwgA:APA91bES7Tc12jHEmBnoZoGQYJfkEB9u1AlgJEnfA_K5HO1snGR8XfR6gP1aY6wt3HmtMznNhsHhqgaXVeZX49wsy95BK5jKYwO4McdCWwaWZZdZzmB_ZhIiy8whtgheLXupC_3HEoXdTg7pgVbEjfzPf2hLXAw-ig">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"silent">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"true">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"topic">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"com.switch168.kosmos.voip">>}]}]},{xmlel,<<"field">>,[{<<"var">>,<<"mode">>}],[{xmlel,<<"value">>,[],[{xmlcdata,<<"dev">>}]}]}]}]
7/8/2018 3:15:27 AM10:15:27.549 [debug] local route
7/8/2018 3:15:27 AM from {jid,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>}
7/8/2018 3:15:27 AM to {jid,<<"u447405748367">>,<<"somedomain.com">>,<<>>,<<"u447405748367">>,<<"somedomain.com">>,<<>>}
7/8/2018 3:15:27 AM packet {xmlel,<<"message">>,[{<<"to">>,<<"u447"...>>},{<<"id">>,<<...>>},{<<...>>,...},{...}],[{xmlel,<<...>>,...},{xmlel,...},{...}]}
7/8/2018 3:15:27 AM10:15:27.549 [debug] session manager
7/8/2018 3:15:27 AM from {jid,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>,<<"0a608c17-c77b-4c88-b70f-2b75927a1486">>,<<"muclight.somedomain.com">>,<<"u447405748715@somedomain.com">>}
7/8/2018 3:15:27 AM to {jid,<<"u447405748367">>,<<"somedomain.com">>,<<>>,<<"u447405748367">>,<<"somedomain.com">>,<<>>}
7/8/2018 3:15:27 AM packet #{attrs => [{<<"to">>,<<"u44740574836"...>>},{<<"id">>,<<"d44c8516"...>>},{<<"type">>,<<"grou"...>>},{<<"from">>,<<...>>}],element => {xmlel,<<"message">>,[{<<...>>,...},{...}|...],[{...}|...]},from => <<"0a608c17-c77b-4c"...>>,from_jid => {jid,<<"0a60"...>>,<<...>>,...},mongoose_acc => true,name => <<"mess"...>>,ref => #Ref<0.2354893659.2305818626.30914>,...}

if i restart the docker container it will start working again

Thanks!

arkgil commented 5 years ago

@andrewvmail Hi! This is only a suspicion, but have you checked the available disk space? I see that you have debug logs turned on - are you logging to files in addition to logging to the console? (if you don't know please paste the contents of etc/app.config file).

andrewvmail commented 5 years ago

@arkgil, hmm df gives. so looks alright

overlay         40470828 9242960  31211484  23% /
tmpfs              65536       0     65536   0% /dev
tmpfs            1024080       0   1024080   0% /sys/fs/cgroup
/dev/vda1       40470828 9242960  31211484  23% /.r
shm                65536       0     65536   0% /dev/shm
tmpfs            1024080       0   1024080   0% /proc/scsi
tmpfs            1024080       0   1024080   0% /sys/firmware

app.config

[
 {setup, [{verify_directories, false}]},
 {mnesia, [{dir, "/var/lib/mongooseim/Mnesia.mongooseim@chat-chat-1"}]},
 {ssl, [{session_lifetime, 600}]}, %% 10 minutes
 {lager, [
    {colored, true},
    %% Limit the number of messages per second allowed from error_logger
    {error_logger_hwm, 100},
    %% Make logging more async
    %% If some very heavy loaded process want to log something, it's better to
    %% not block the process.
    {async_threshold, 2000},
    {async_threshold_window, 500},
    %% Kill sink if it has more than 10k messages
    {killer_hwm, 10000},
    {killer_reinstall_after, 5000},
    {log_root, "/var/log/mongooseim"},
    {crash_log, "crash.log"},
    {handlers, [
        {lager_console_backend, [{level, info}]},
%% use below line to add syslog backend for Lager
%        {lager_syslog_backend, [ "mongooseim", local0, info]},
        {lager_file_backend, [{file, "ejabberd.log"}, {level, info}, {size, 2097152}, {date, "$D0"}, {count, 5}]}
    ]}
  ]}
%{exometer_core, [
%    {mongooseim_report_interval, 60000}, %% 60 seconds
%    {report, [
%        {reporters, [
%                     {exometer_report_graphite, [
%                                                 {prefix, "mongooseim"},
%                                                 {connect_timeout, 5000},
%                                                 {host, "127.0.0.1"},
%                                                 {port, 2003},
%                                                 {api_key, ""}
%                                                ]}
%                    ]}
%    ]}
%  ]}

%% use below line to enable FIPS mode
%%{crypto, [{fips_mode, true}]},
].

%% vim: filetype=erlang

I think I'm logging to file. Interestingly this week the problem with the freezing hasn't happened once. Come to think of it I think its because of Riak being offline the server crashed silently.

andrewvmail commented 5 years ago

Will re-open if i see it again.

andrewvmail commented 5 years ago

Hmm I guess its not beacuse of Riak... it looks like it's happening again, I think it did crash but the crash log is empty.

The log folder contains following files.

drwxr-xr-x 2 root root    4096 Jul 15 05:27 .
drwxr-xr-x 1 root root    4096 Jul  8 20:47 ..
-rw-r--r-- 1 root root       0 Jul 15 04:49 crash.log
-rw-r--r-- 1 root root       0 Jul  9 01:59 crash.log.4
-rw-r--r-- 1 root root  909642 Jul 15 05:33 ejabberd.log
-rw-r--r-- 1 root root 2097361 Jul 15 03:32 ejabberd.log.0
-rw-r--r-- 1 root root 1545196 Jul 14 23:59 ejabberd.log.1
-rw-r--r-- 1 root root 2145725 Jul 14 23:18 ejabberd.log.2
-rw-r--r-- 1 root root 2111147 Jul 14 22:07 ejabberd.log.3
-rw-r--r-- 1 root root 2106857 Jul 14 21:16 ejabberd.log.4
andrewvmail commented 5 years ago

@arkgil im curious is there any way to trigger a crash from mongooseimctl to test if crash.log is actually working? I'm trying to figure out why crash.log empty

fenek commented 5 years ago

@andrewvmail

The easiest method I can think of is to attach to node's shell and execute e.g. exit(whereis(ejabberd_c2s_sup), test).

This should trigger following log in crash.log:

2018-07-19 16:01:13 =SUPERVISOR REPORT====
     Supervisor: {local,ejabberd_c2s_sup}
     Context:    child_terminated
     Reason:     test
     Offender:   [{pid,<0.1159.0>},{id,undefined},{mfargs,{ejabberd_c2s,start_link,undefined}},{restart_type,temporary},{shutdown,brutal_kill},{child_type,worker}]
andrewvmail commented 5 years ago

@fenek Thanks I will try this to deduce the issue

andrewvmail commented 5 years ago

Looks like crashing function works fine. I think host may run out of memory. I ran this just now

%% Enable "monitoring".
F = fun(F, I) ->
            Timestamp = calendar:now_to_local_time(erlang:now()),
            NSessions = ejabberd_sm:get_vh_session_number(<<"kosmosmobile.com">>),
            FreeRam = "free -m | sed '2q;d' | awk '{ print $4 }'",
            io:format("~p ~p no of users: ~p, free ram: ~s",
                      [I, Timestamp, NSessions, os:cmd(FreeRam)]),
            timer:sleep(timer:seconds(2)),
            F(F, I+1)
    end.
G = fun() -> F(F, 1) end.
f(P).
P = spawn(G).

no of users: 0, free ram: 70.
Then i ran it again after i restart the stack now its no of users: 0, free ram: 615

I'm trying to load test this setup with Tsung to have its memory used up and I cant get it working with wss. A couple of years back i managed to load test using tsung tcp. Maybe its not supported yet based on this thread https://github.com/processone/tsung/issues/132 it just get stuck at the after the initial ssl handshake

Do you guys have any suggestions on how to get mim to eat up a bunch of memory? And if the system do run out of memory what should be the expected thing mim would do?

andrewvmail commented 5 years ago

Okay just an update here from my end. Looks like it is a leak not sure whats causing it. I was monitoring it for a couple of days. and memory just decreases over time. Havent gotten a crash yet but I think it's coming soon. I think i might have build from a non stable commit https://github.com/esl/MongooseIM/commit/e108c81e1

I was able to use a patched up Tsung they just patched up recently to load-test the server.

fenek commented 5 years ago

Can you please execute erlang:memory(). in MongooseIM shell at three points in time? Right after container start and twice when memory usage becomes higher and higher?

andrewvmail commented 5 years ago

Sunday, August 19 1:26AM

[{total,340398192},
 {processes,308276416},
 {processes_used,308275968},
 {system,32121776},
 {atom,785337},
 {atom_used,760506},
 {binary,1595152},
 {code,15809584},
 {ets,4000448}]

Monday, August 20 12:16PM

[{total,344188096},
 {processes,308940168},
 {processes_used,308936096},
 {system,35247928},
 {atom,883657},
 {atom_used,877075},
 {binary,1465248},
 {code,18366460},
 {ets,4076352}]

Tuesday August 21 6:10PM

[{total,347584264},
 {processes,312081816},
 {processes_used,312080296},
 {system,35502448},
 {atom,883657},
 {atom_used,879705},
 {binary,1477472},
 {code,18496075},
 {ets,4102368}]
andrewvmail commented 5 years ago

@fenek see above for memory usage

fenek commented 5 years ago

OK, let's try two more commands, as clearly half of the memory consumption increase is caused by processes:

recon:proc_count(memory, 10).
recon:proc_count(message_queue_len, 10).
andrewvmail commented 5 years ago

@fenek

Eshell V9.3  (abort with ^G)
(mongooseim@chat-chat-1)1> recon:proc_count(memory, 10).
[{<0.1618.0>,1344720,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1639.0>,973288,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.646.0>,973288,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.38.0>,426512,
  [code_server,
   {current_function,{code_server,loop,1}},
   {initial_call,{erlang,apply,2}}]},
 {<0.1620.0>,372528,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1619.0>,372528,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1758.0>,372384,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1757.0>,372384,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1725.0>,372384,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1724.0>,372384,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]}]
(mongooseim@chat-chat-1)2> recon:proc_count(message_queue_len, 10).
[{<0.12748.2>,0,
  [{current_function,{shell,shell_rep,4}},
   {initial_call,{erlang,apply,2}}]},
 {<0.12745.2>,0,
  [{current_function,{dist_util,con_loop,2}},
   {initial_call,{inet_tcp_dist,do_accept,7}}]},
 {<0.28284.1>,0,
  [{current_function,{io,execute_request,2}},
   {initial_call,{erlang,apply,2}}]},
 {<0.28275.1>,0,
  [{current_function,{shell,eval_loop,3}},
   {initial_call,{erlang,apply,2}}]},
 {<0.28274.1>,0,
  [{current_function,{shell,get_command1,5}},
   {initial_call,{erlang,apply,2}}]},
 {<0.28271.1>,0,
  [{current_function,{dist_util,con_loop,2}},
   {initial_call,{inet_tcp_dist,do_accept,7}}]},
 {<0.471.1>,0,
  [{current_function,{io,execute_request,2}},
   {initial_call,{erlang,apply,2}}]},
 {<0.461.1>,0,
  [{current_function,{shell,eval_loop,3}},
   {initial_call,{erlang,apply,2}}]},
 {<0.460.1>,0,
  [{current_function,{shell,get_command1,5}},
   {initial_call,{erlang,apply,2}}]},
 {<0.457.1>,0,
  [{current_function,{dist_util,con_loop,2}},
   {initial_call,{inet_tcp_dist,do_accept,7}}]}]
fenek commented 5 years ago

Are these for a system after a fresh start, during the load test or after finished test?

andrewvmail commented 5 years ago

@fenek its just after a few days of very low usage of me logging in and out. Have not put any load to it.

fenek commented 5 years ago

OK, please try the same commands (memory and recon) during/after some load test. With very little traffic it may be expected that some processes are not garbage collected.

andrewvmail commented 5 years ago

Just a note ill be on this in a week or so. Just have a backlog of stuff I need to take care. Thanks for the assist!

andrewvmail commented 5 years ago

Starting no load (1st attempt crashed)

(mongooseim@chat-chat-1)5> erlang:memory().
[{total,340255280},
 {processes,307801440},
 {processes_used,307799736},
 {system,32453840},
 {atom,785337},
 {atom_used,761692},
 {binary,1618104},
 {code,15894237},
 {ets,4218272}]
(mongooseim@chat-chat-1)6> recon:proc_count(memory, 10).
[{<0.38.0>,426512,
  [code_server,
   {current_function,{code_server,loop,1}},
   {initial_call,{erlang,apply,2}}]},
 {<0.1738.0>,372384,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1737.0>,372384,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1705.0>,372384,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1704.0>,372384,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1703.0>,372384,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1702.0>,372384,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1701.0>,372384,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1700.0>,372384,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1699.0>,372384,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]}]
3 {{2018,9,19},{0,2,34}} no of users: 0, free ram: 912             
(mongooseim@chat-chat-1)7> recon:proc_count(message_queue_len, 10).
[{<0.2163.0>,0,
  [{current_function,{timer,sleep,1}},
   {initial_call,{erlang,apply,2}}]},
 {<0.2154.0>,0,
  [{current_function,{shell,shell_rep,4}},
   {initial_call,{erlang,apply,2}}]},
 {<0.2151.0>,0,
  [{current_function,{dist_util,con_loop,2}},
   {initial_call,{inet_tcp_dist,do_accept,7}}]},
 {<0.2140.0>,0,
  [nksip_router_15,
   {current_function,{gen_server,loop,7}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.2139.0>,0,
  [nksip_router_14,
   {current_function,{gen_server,loop,7}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.2138.0>,0,
  [nksip_router_13,
   {current_function,{gen_server,loop,7}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.2137.0>,0,
  [nksip_router_12,
   {current_function,{gen_server,loop,7}},
   {initial_call,{proc_lib,init_p,5}}]}, 
 {<0.2136.0>,0,
  [nksip_router_11,
   {current_function,{gen_server,loop,7}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.2135.0>,0,
  [nksip_router_10,
   {current_function,{gen_server,loop,7}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.2134.0>,0,
  [nksip_router_9,
   {current_function,{gen_server,loop,7}},
   {initial_call,{proc_lib,init_p,5}}]}]
4 {{2018,9,19},{0,2,36}} no of users: 0, free ram: 911
5 {{2018,9,19},{0,2,38}} no
andrewvmail commented 5 years ago

while load testing

8199 {{2018,9,19},{0,9,10}} no of users: 1001, free ram: 401
(mongooseim@chat-chat-1)10> erlang:memory().
[{total,387548256},
 {processes,348664408},
 {processes_used,348149280},
 {system,38883848},
 {atom,793529},
 {atom_used,781177},
 {binary,3405416},
 {code,16605815},
 {ets,5920800}]
(mongooseim@chat-chat-1)11> recon:proc_count(memory, 10).
200 {{2018,9,19},{0,9,12}} no of users: 1001, free ram: 402
[{<0.2163.0>,4119720,
  [{current_function,{io,execute_request,2}},
   {initial_call,{erlang,apply,2}}]},
 {<0.1583.0>,2917880,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1580.0>,1945584,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.660.0>,1945584,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.898.0>,1875888,
  ['mod_offline_kosmosmobile.com',
   {current_function,{gen_server,loop,7}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.863.0>,973336,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.719.0>,973336,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.716.0>,973336,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.698.0>,973296,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1619.0>,973288,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]}]
(mongooseim@chat-chat-1)12> recon:proc_count(message_queue_len, 10).
[{<0.356.0>,621,
  [lager_event,
   {current_function,{io,execute_request,2}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.898.0>,12,
  ['mod_offline_kosmosmobile.com',
   {current_function,{mnesia_locker,receive_wlocks,4}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.4943.0>,2,
  [{current_function,{erlang,bif_return_trap,2}}, 
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.4954.0>,1,
  [{current_function,{gen,do_call,4}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.4952.0>,1,
  [{current_function,{gen,do_call,4}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.4950.0>,1,
  [{current_function,{gen,do_call,4}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.4948.0>,1,
  [{current_function,{gen,do_call,4}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.4946.0>,1,
  [{current_function,{gen,do_call,4}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.4351.0>,1,
  [{current_function,{erlang,hibernate,3}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.4243.0>,1,
  [{current_function,{gen,do_call,4}},
   {initial_call,{proc_lib,init_p,5}}]}]
201 {{2018,9,19},{0,9,14}} no of users: 1001, free ram: 363
andrewvmail commented 5 years ago

one minute after load test

367 {{2018,9,19},{0,14,48}} no of users: 83, free ram: 74           
(mongooseim@chat-chat-1)16> erlang:memory().
[{total,641918536},
 {processes,605680848},
 {processes_used,605679472},
 {system,36237688},
 {atom,793529},
 {atom_used,781177},
 {binary,2026312},
 {code,16605815},
 {ets,4789792}]
(mongooseim@chat-chat-1)17> recon:proc_count(memory, 10).
[{<0.356.0>,262071800,
  [lager_event,
   {current_function,{io,execute_request,2}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.1580.0>,4720712,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1583.0>,2917880,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.698.0>,1945584,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.898.0>,1811976,
  ['mod_offline_kosmosmobile.com',
   {current_function,{gen_server,loop,7}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.660.0>,1574208,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1587.0>,973624,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.720.0>,973432,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.888.0>,973384,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]},
 {<0.1591.0>,973336,
  [{current_function,{exometer_probe,loop,1}},
   {initial_call,{proc_lib,init_p,3}}]}]
(mongooseim@chat-chat-1)18> recon:proc_count(message_queue_len, 10).
[{<0.356.0>,55137,
  [lager_event,
   {current_function,{io,execute_request,2}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.718.0>,169,
  ['ejabberd_mod_pubsub_loop_kosmosmobile.com',
   {current_function,{gen,do_call,4}},
   {initial_call,{mod_pubsub,send_loop,1}}]},
 {<0.6115.0>,11,
  [{current_function,{gen,do_call,4}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.4984.0>,9,
  [{current_function,{gen,do_call,4}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.4788.0>,9,
  [{current_function,{gen,do_call,4}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.6111.0>,8,
  [{current_function,{gen,do_call,4}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.6109.0>,8,
  [{current_function,{gen,do_call,4}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.5901.0>,8,
  [{current_function,{gen,do_call,4}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.5487.0>,8,
  [{current_function,{gen,do_call,4}},
   {initial_call,{proc_lib,init_p,5}}]},
 {<0.5036.0>,8,
  [{current_function,{gen,do_call,4}},
   {initial_call,{proc_lib,init_p,5}}]}]
368 {{2018,9,19},{0,14,50}} no of users: 83, free ram: 74
andrewvmail commented 5 years ago

@fenek after that last load test i exited out of mongooseimctl debug and it stopped working and had to restart the container.

andrewvmail commented 5 years ago

im disabling transparent huge page and running the container in host mode now gonna see if this helps

fenek commented 5 years ago

Hi @andrewvmail

Have the changes mentioned in your last comment helped?

andrewvmail commented 5 years ago

@fenek, hasn't crashed yet. I think it did helped. Its stable like a rock now. I was gonna wait 1 more day before closing 😄. But I think its safe to close this today.

Thanks for the ping.

andrewvmail commented 5 years ago

@fenek,

actually i pulled the trigger to soon ... it crashed last night at 5AM, it was working fine for 2 weeks up till yesterday. I just got to work and found out now.

fenek commented 5 years ago

According to the console snippets you've pasted, logging framework is a bottleneck. What log level have you configured in ejabberd.cfg? If it's 4, then try 3.

andrewvmail commented 5 years ago

Its actually at log 5, I'll set it to 3 and let you know how it is. But I think disabling THP and running it under host mode helped because it lasted 2 weeks instead of couple of days.

fenek commented 5 years ago

@andrewvmail

It's been more than 2 weeks since our conversation. How is the stability now?

andrewvmail commented 5 years ago

Hi @fenek , it has been really stable all this time. I just checked it again just now to make sure, and we are still good. Thanks for all your help. I will close this issue.