Erlang/OTP Forums

Author Message

<  Ejabberd mailing list  ~  Process consuming too much memory

Guest
Posted: Sat Jul 10, 2010 7:03 pm Reply with quote
Guest
Hi guys,

Installed ejabberd-2.1.4 from the binary installer on the site, imported
my openfire users. Added mod_webpresense, mod_register_web, mod_statsdx
and mod_stat2file.

About 5 minutes after firing her up, I updated the message of the day,
the message is about 1kb, then sent a message to all users.

The result was 64 "process consuming too much memory" messages.


Is this bad or normal, I'm getting them every 1 to 60 seconds.


('ejabberd@jabber-0-1') The process <0.4.0> is consuming too much memory:
[{old_heap_block_size,1346269},
{heap_block_size,196418},
{mbuf_size,0},
{stack_size,252},
{old_heap_size,1276126},
{heap_size,15265}]
[{current_function,{io_lib,string_char,3}},
{initial_call,{proc_lib,init_p,5}},
{message_queue_len,0},
{links,[<0.0.0>,<0.26.0>,#Port<0.299>]},
{dictionary,[{'$ancestors',[<0.1.0>]},
{'$initial_call',{gen,init_it,
[gen_event,<0.1.0>,<0.1.0>,
{local,error_logger},
[],[],[]]}}]},
{heap_size,196418},
{stack_size,286}]




('ejabberd@jabber-0-1') The process <0.127.0> is consuming too much memory:
[{old_heap_block_size,832040},
{heap_block_size,317811},
{mbuf_size,0},
{stack_size,67},
{old_heap_size,349},
{heap_size,88952}]
[{current_function,{dets,open_file_loop2,2}},
{initial_call,{proc_lib,init_p,5}},
{message_queue_len,0},
{links,[<0.50.0>,<0.51.0>,#Port<0.220>]},
{dictionary,[{1348,585016},
{1336,3384},
{1356,1021240},
{'$ancestors',[dets_sup,kernel_safe_sup,kernel_sup,<0.8.0>]},
{1344,662840},
{312,1336},
{1352,750904},
{1360,1076536},
{1340,652600},
{'$initial_call',{dets,init,[<0.50.0>,<0.51.0>]}}]},
{heap_size,317811},
{stack_size,12}]



('ejabberd@jabber-0-1') The process <0.4.0> is consuming too much memory:
[{old_heap_block_size,1346269},
{heap_block_size,196418},
{mbuf_size,0},
{stack_size,30},
{old_heap_size,1276126},
{heap_size,449}]
[{current_function,{io,wait_io_mon_reply,2}},
{initial_call,{proc_lib,init_p,5}},
{message_queue_len,1},
{links,[<0.0.0>,<0.26.0>,#Port<0.299>]},
{dictionary,[{'$ancestors',[<0.1.0>]},
{'$initial_call',{gen,init_it,
[gen_event,<0.1.0>,<0.1.0>,
{local,error_logger},
[],[],[]]}}]},
{heap_size,196418},
{stack_size,38}]




Regards
Nigel



Post received from mailinglist
Guest
Posted: Sun Jul 11, 2010 9:32 am Reply with quote
Guest
The alert module is for developer debug only as indicated in the
documentation.
It is likely that your install is fine.

--
Micka
Guest
Posted: Sun Jul 11, 2010 9:46 am Reply with quote
Guest
> The alert module is for developer debug only as indicated in the
> documentation.
> It is likely that your install is fine.
>

What I did is comment it out...
%% {watchdog_admins, ["nkukard@xxx"]}.

I then got this about 5 mins after startup...

('ejabberd@jabber-0-1') The process <0.146.0> is consuming too much memory:
[{old_heap_block_size,1346269},
{heap_block_size,514229},
{mbuf_size,0},
{stack_size,67},
{old_heap_size,792884},
{heap_size,228724}]
[{current_function,{dets_v9,binobjs2terms,6}},
{initial_call,{proc_lib,init_p,5}},
{message_queue_len,0},
{links,[<0.50.0>,<0.51.0>,#Port<0.234>]},
{dictionary,[{1348,585016},
{1336,3384},
{1356,1021240},
{'$ancestors',[dets_sup,kernel_safe_sup,kernel_sup,<0.8.0>]},
{1344,662840},
{312,1336},
{1352,750904},
{1360,1076536},
{1340,652600},
{'$initial_call',{dets,init,[<0.50.0>,<0.51.0>]}}]},
{heap_size,832040},
{stack_size,59}]
[09:13:44] jabber.iitsp.com: ('ejabberd@jabber-0-1') The process
<0.146.0> is consuming too much memory:
[{old_heap_block_size,1346269},
{heap_block_size,832040},
{mbuf_size,0},
{stack_size,67},
{old_heap_size,792884},
{heap_size,516268}]
[{current_function,{dets_v9,binobjs2terms,6}},
{initial_call,{proc_lib,init_p,5}},
{message_queue_len,0},
{links,[<0.50.0>,<0.51.0>,#Port<0.234>]},
{dictionary,[{1348,585016},
{1336,3384},
{1356,1021240},
{'$ancestors',[dets_sup,kernel_safe_sup,kernel_sup,<0.8.0>]},
{1344,662840},
{312,1336},
{1352,750904},
{1360,1076536},
{1340,652600},


is there a specific module I shouldn't be loading? if so, which one is it?

Regards
Nigel




Post received from mailinglist
Guest
Posted: Sun Jul 11, 2010 11:59 am Reply with quote
Guest
On 07/11/10 09:44, Nigel Kukard wrote:
>
>> The alert module is for developer debug only as indicated in the
>> documentation.
>> It is likely that your install is fine.
>>
>>
> What I did is comment it out...
> %% {watchdog_admins, ["nkukard@xxx"]}.
>
> I then got this about 5 mins after startup...
>
> ('ejabberd@jabber-0-1') The process <0.146.0> is consuming too much memory:
> [{old_heap_block_size,1346269},
> {heap_block_size,514229},
> {mbuf_size,0},
> {stack_size,67},
> {old_heap_size,792884},
> {heap_size,228724}]
> [{current_function,{dets_v9,binobjs2terms,6}},
> {initial_call,{proc_lib,init_p,5}},
> {message_queue_len,0},
> {links,[<0.50.0>,<0.51.0>,#Port<0.234>]},
> {dictionary,[{1348,585016},
> {1336,3384},
> {1356,1021240},
> {'$ancestors',[dets_sup,kernel_safe_sup,kernel_sup,<0.8.0>]},
> {1344,662840},
> {312,1336},
> {1352,750904},
> {1360,1076536},
> {1340,652600},
> {'$initial_call',{dets,init,[<0.50.0>,<0.51.0>]}}]},
> {heap_size,832040},
> {stack_size,59}]
> [09:13:44] jabber.iitsp.com: ('ejabberd@jabber-0-1') The process
> <0.146.0> is consuming too much memory:
> [{old_heap_block_size,1346269},
> {heap_block_size,832040},
> {mbuf_size,0},
> {stack_size,67},
> {old_heap_size,792884},
> {heap_size,516268}]
> [{current_function,{dets_v9,binobjs2terms,6}},
> {initial_call,{proc_lib,init_p,5}},
> {message_queue_len,0},
> {links,[<0.50.0>,<0.51.0>,#Port<0.234>]},
> {dictionary,[{1348,585016},
> {1336,3384},
> {1356,1021240},
> {'$ancestors',[dets_sup,kernel_safe_sup,kernel_sup,<0.8.0>]},
> {1344,662840},
> {312,1336},
> {1352,750904},
> {1360,1076536},
> {1340,652600},
>
>
> is there a specific module I shouldn't be loading? if so, which one is it?
>
>

Here is the error when I get these messages, I have a few thousand for
the past 2 hours.


=ERROR REPORT==== 2010-07-11 11:56:07 ===
E(<0.1511.0>:ejabberd_sm:8Cool : {{badarg,ok},
[{ejabberd_sm,route_message,3},
{ejabberd_sm,route,3},
{ejabberd_local,route,3},
{ejabberd_router,route,3},
{ejabberd_s2s_in,stream_established,2},
{gen_fsm,handle_msg,7},
{proc_lib,init_p,5}]}
when processing: {{jid,"update","identi.ca","xmpp001daemon","update",
"identi.ca","xmpp001daemon"},
{jid,"xx","jabber.iitsp.com",[],"xx",
"jabber.iitsp.com",[]},
{xmlelement,"message",
[{"type","chat"},
{"to","xx@jabber.iitsp.com"},
{"from","update@identi.ca/xmpp001daemon"}],
[{xmlelement,"body",[],
[{xmlcdata,
<<"gbraad: RT @kanarip Single CD Fedora 13 Remix
http://tinyurl.com/2djnouj [40823287]">>}]},
{xmlelement,"html",
[{"xmlns","http://jabber.org/protocol/xhtml-im"}],
[{xmlelement,"body",
[{"xmlns","http://www.w3.org/1999/xhtml"}],
[{xmlelement,"a",
[{"href","http://identi.ca/gbraad"}],
[{xmlcdata,<<"gbraad">>}]},
{xmlcdata,<<": RT @">>},
{xmlelement,"span",
[{"class","vcard"}],
[{xmlelement,"a",
[{"title","Jeroen van Meeuwen"},
{"class","url"},
{"href","http://identi.ca/user/41378"}],
[{xmlelement,"span",
[{"class","fn nickname"}],
[{xmlcdata,<<"kanarip">>}]}]}]},
{xmlcdata,<<" Single CD Fedora 13 Remix ">>},
{xmlelement,"a",
[{"rel","external"},
{"title",

"http://planet.ergo-project.org/blog/jmeeuwen/2010/07/11/single-cd-fedora-13-remix"},
{"href","http://tinyurl.com/2djnouj"}],
[{xmlcdata,<<"http://tinyurl.com/2djnouj">>}]},
{xmlcdata,<<" ">>},
{xmlelement,"a",
[{"href",

"http://identi.ca/conversation/40556054#notice-40823287"}],
[{xmlcdata,<<"[40823287]">>}]}]}]},
{xmlcdata,<<" ">>},
{xmlelement,"entry",
[{"xmlns","http://www.w3.org/2005/Atom"}],
[{xmlcdata,<<"\n ">>},
{xmlelement,"source",[],
[{xmlcdata,<<"\n ">>},
{xmlelement,"id",[],
[{xmlcdata,<<"http://identi.ca/gbraad">>}]},
{xmlcdata,<<"\n ">>},
{xmlelement,"title",[],
[{xmlcdata,<<"gbraad - Identi.ca">>}]},
{xmlcdata,<<"\n ">>},
{xmlelement,"link",
[{"href","http://identi.ca/gbraad"}],
[]},
{xmlcdata,<<"\n ">>},
{xmlelement,"link",
[{"rel","self"},
{"type","application/atom+xml"},
{"href","http://identi.ca/gbraad"}],
[]},
{xmlcdata,<<"\n ">>},
{xmlelement,"link",
[{"rel","license"},
{"href",
"http://creativecommons.org/licenses/by/3.0/"}],
[]},
{xmlcdata,<<"\n ">>},
{xmlelement,"icon",[],
[{xmlcdata,

<<"http://avatar.identi.ca/15178-96-20090501230930.png">>}]},
{xmlcdata,<<"\n ">>},
{xmlelement,"updated",[],
[{xmlcdata,<<"2010-07-11T11:56:05+00:00">>}]},
{xmlcdata,<<"\n">>}]},
{xmlcdata,<<"\n ">>},
{xmlelement,"title",[],
[{xmlcdata,
<<"RT @kanarip Single CD Fedora 13 Remix
http://tinyurl.com/2djnouj">>}]},
{xmlcdata,<<"\n">>},
{xmlelement,"author",[],
[{xmlcdata,<<"\n ">>},
{xmlelement,"name",[],[{xmlcdata,<<"gbraad">>}]},
{xmlcdata,<<"\n ">>},
{xmlelement,"uri",[],
[{xmlcdata,<<"http://identi.ca/user/15178">>}]},
{xmlcdata,<<"\n">>}]},
{xmlcdata,<<"\n">>},
{xmlelement,"actor",
[{"xmlns","http://activitystrea.ms/spec/1.0/"}],
[{xmlcdata,<<"\n ">>},
{xmlelement,"object-type",[],
[{xmlcdata,

<<"http://activitystrea.ms/schema/1.0/person">>}]},
{xmlcdata,<<"\n ">>},
{xmlelement,"id",
[{"xmlns","http://www.w3.org/2005/Atom"}],
[{xmlcdata,<<"http://identi.ca/user/15178">>}]},
{xmlcdata,<<"\n ">>},
{xmlelement,"title",
[{"xmlns","http://www.w3.org/2005/Atom"}],
[{xmlcdata,
<<71,101,114,97,114,100,32,66,114,97,97,100,32,
40,229,144,137,230,139,137,229,190,183,41>>}]},
{xmlcdata,<<"\n ">>},
{xmlelement,"link",
[{"rel","alternate"},
{"type","text/html"},
{"href","http://identi.ca/gbraad"},
{"xmlns","http://www.w3.org/2005/Atom"}],
[]},
{xmlcdata,<<"\n ">>},
{xmlelement,"link",
[{"rel","avatar"},
{"type","image/png"},
{"xmlns:ns1",
"http://purl.org/syndication/atommedia"},
{"ns1:height","100"},
{"xmlns:ns2",
"http://purl.org/syndication/atommedia"},
{"ns2:width","100"},
{"href",

"http://avatar.identi.ca/15178-100-20090501230930.png"},
{"xmlns","http://www.w3.org/2005/Atom"}],
[]},
{xmlcdata,<<"\n ">>},
{xmlelement,"link",
[{"rel","avatar"},
{"type","image/png"},
{"xmlns:ns1",
"http://purl.org/syndication/atommedia"},
{"ns1:height","96"},
{"xmlns:ns2",
"http://purl.org/syndication/atommedia"},
{"ns2:width","96"},
{"href",

"http://avatar.identi.ca/15178-96-20090501230930.png"},
{"xmlns","http://www.w3.org/2005/Atom"}],
[]},
{xmlcdata,<<"\n ">>},
{xmlelement,"link",
[{"rel","avatar"},
{"type","image/png"},
{"xmlns:ns1",
"http://purl.org/syndication/atommedia"},
{"ns1:height","48"},
{"xmlns:ns2",
"http://purl.org/syndication/atommedia"},
{"ns2:width","48"},
{"href",

"http://avatar.identi.ca/15178-48-20090501230930.png"},
{"xmlns","http://www.w3.org/2005/Atom"}],
[]},
{xmlcdata,<<"\n ">>},
{xmlelement,"link",
[{"rel","avatar"},
{"type","image/png"},
{"xmlns:ns1",
"http://purl.org/syndication/atommedia"},
{"ns1:height","24"},
{"xmlns:ns2",
"http://purl.org/syndication/atommedia"},
{"ns2:width","24"},
{"href",

"http://avatar.identi.ca/15178-24-20090501230930.png"},
{"xmlns","http://www.w3.org/2005/Atom"}],
[]},
{xmlcdata,<<"\n ">>},
{xmlelement,"point",
[{"xmlns","http://www.georss.org/georss"}],
[{xmlcdata,<<"0 0">>}]},
{xmlcdata,<<"\n">>},
{xmlelement,"preferredUsername",
[{"xmlns","http://portablecontacts.net/spec/1.0"}],
[{xmlcdata,<<"gbraad">>}]},
{xmlcdata,<<"\n">>},
{xmlelement,"displayName",
[{"xmlns","http://portablecontacts.net/spec/1.0"}],
[{xmlcdata,
<<71,101,114,97,114,100,32,66,114,97,97,100,32,
40,229,144,137,230,139,137,229,190,183,41>>}]},
{xmlcdata,<<"\n">>},
{xmlelement,"note",
[{"xmlns","http://portablecontacts.net/spec/1.0"}],
[{xmlcdata,
<<"My 15K of fame; Software/Hardware
Engineer, Visuals Artist. Sysadmin Linux/Un*x, C/C++, Java, Python, ARM,
MIPS, DSP, FPGA... and Dutch!">>}]},
{xmlcdata,<<"\n">>},
{xmlelement,"address",
[{"xmlns","http://portablecontacts.net/spec/1.0"}],
[{xmlcdata,<<"\n ">>},
{xmlelement,"formatted",[],
[{xmlcdata,<<"Beijing, CHN / Apeldoorn, NL">>}]},
{xmlcdata,<<"\n">>}]},
{xmlcdata,<<"\n">>},
{xmlelement,"urls",
[{"xmlns","http://portablecontacts.net/spec/1.0"}],
[{xmlcdata,<<"\n ">>},

{xmlelement,"type",[],[{xmlcdata,<<"homepage">>}]},
{xmlcdata,<<"\n ">>},
{xmlelement,"value",[],
[{xmlcdata,<<"http://gbraad.nl/">>}]},
{xmlcdata,<<"\n ">>},
{xmlelement,"primary",[],[{xmlcdata,<<"true">>}]},
{xmlcdata,<<"\n">>}]},
{xmlcdata,<<"\n">>}]},
{xmlcdata,<<"\n ">>},
{xmlelement,"link",
[{"rel","alternate"},
{"type","text/html"},
{"href","http://identi.ca/notice/40823287"}],
[]},
{xmlcdata,<<"\n ">>},
{xmlelement,"id",[],
[{xmlcdata,<<"http://identi.ca/notice/40823287">>}]},
{xmlcdata,<<"\n ">>},
{xmlelement,"published",[],
[{xmlcdata,<<"2010-07-11T11:56:05+00:00">>}]},
{xmlcdata,<<"\n ">>},
{xmlelement,"updated",[],
[{xmlcdata,<<"2010-07-11T11:56:05+00:00">>}]},
{xmlcdata,<<"\n ">>},
{xmlelement,"notice_info",
[{"repeat_of","40823096"},
{"local_id","40823287"},
{"source","web"},
{"xmlns","http://status.net/schema/api/1/"}],
[]},
{xmlcdata,<<"\n ">>},
{xmlelement,"link",
[{"rel","ostatus:conversation"},
{"href","http://identi.ca/conversation/40556054"}],
[]},
{xmlcdata,<<"\n ">>},
{xmlelement,"forward",
[{"ref","http://identi.ca/notice/40823096"},
{"href","http://identi.ca/notice/40823096"},
{"xmlns","http://ostatus.org/schema/1.0"}],
[]},
{xmlcdata,<<"\n ">>},
{xmlelement,"content",
[{"type","html"}],
[{xmlcdata,
<<"RT @<span class=\"vcard\"><a
href=\"http://identi.ca/user/41378\" class=\"url\" title=\"Jeroen van
Meeuwen\"><span class=\"fn nickname\">kanarip</span></a></span> Single
CD Fedora 13 Remix <a href=\"http://tinyurl.com/2djnouj\"
title=\"http://planet.ergo-project.org/blog/jmeeuwen/2010/07/11/single-cd-fedora-13-remix\"
rel=\"external\">http://tinyurl.com/2djnouj</a>">>}]},
{xmlcdata,<<"\n">>}]},
{xmlcdata,<<"\n">>}]}}






Post received from mailinglist
Guest
Posted: Mon Jul 12, 2010 7:07 am Reply with quote
Guest
Make sure you use override directive properly.

Le 11 juil. 2010
Guest
Posted: Mon Jul 12, 2010 11:44 am Reply with quote
Guest
2010/7/11 Nigel Kukard <nkukard@lbsd.net>:
> Here is the error when I get these messages, I have a few thousand for
> the past 2 hours.
>
> =ERROR REPORT==== 2010-07-11 11:56:07 ===
> E(<0.1511.0>:ejabberd_sm:8Cool : {{badarg,ok},
>                                [{ejabberd_sm,route_message,3},
>                                 {ejabberd_sm,route,3},
>                                 {ejabberd_local,route,3},
>                                 {ejabberd_router,route,3},
>                                 {ejabberd_s2s_in,stream_established,2},
>                                 {gen_fsm,handle_msg,7},
>                                 {proc_lib,init_p,5}]}
> when processing: {{jid,"update","identi.ca","xmpp001daemon","update",
>                   "identi.ca","xmpp001daemon"},
...

I've reported the problem in
https://support.process-one.net/browse/EJAB-1274
Then i remembered it's already fixed in git.

Until ejabberd 2.1.5 is released, you can compile the file from git,
or get mine from the ticket.



---
Badlop
ProcessOne
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd

Post received from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum