ejabberd - Comments for "ejabberd burning cpu and eating memory" https://www.ejabberd.im/node/3985 en Commenting out didn't help much... https://www.ejabberd.im/node/3985#comment-55603 <p>the cpu load was a bit delayed, I didn't turn ejabberd debug log on so can't be sure if I made a mistake.</p> <div class="quote-msg"> <div class="quote-author"><em>badlop</em> wrote:</div> <p>Maybe the problem is related to this one: <noindex><a href="https://support.process-one.net/browse/EJAB-930" rel="nofollow" >RFC3920/9.3.1 violation, ejabberd sends error stanza as reply to error stanza</a></noindex>.</p></div> <p>This one helped me - and solved my problem :-) Thanks badlop, again...</p> <p>If any Gentoo user has the same errors, try the updated ebuilds from my <noindex><a href="http://hg.linuxlovers.at/gentoo-overlay/file/7e0760d32422/net-im/" rel="nofollow" >Overlay</a></noindex> (Spectrum with 'ping' useflag, ejabberd-2.1.3-r1 with patch from EJAB-930).</p> Mon, 19 Apr 2010 13:52:28 +0000 kamistral comment 55603 at https://www.ejabberd.im You can workaround the https://www.ejabberd.im/node/3985#comment-55601 <p>You can workaround the problem by deactivating the XMPP pings in spectrum, but for this you have to compile spectrum yourself. In line 1527 in the file main.cpp (current git snapshot) you can comment out "purple_timeout_add_seconds(60, &amp;sendPing, this);", so that it never sends XMPP pings. After compiling and installing spectrum with this workaround ejabberd should not crash again. At least I could fix my server with this change.</p> Mon, 19 Apr 2010 11:19:59 +0000 Hirion comment 55601 at https://www.ejabberd.im I see you added the ticket https://www.ejabberd.im/node/3985#comment-55600 <p>I see you added the ticket <noindex><a href="https://support.process-one.net/browse/EJAB-1213" rel="nofollow" >100% CPU Usage Problem with a Transport that does XMPP Pings</a></noindex></p> <p>Maybe the problem is related to this one: <noindex><a href="https://support.process-one.net/browse/EJAB-930" rel="nofollow" >RFC3920/9.3.1 violation, ejabberd sends error stanza as reply to error stanza</a></noindex>.</p> <p>If you agree that both problems may be related, you can try the patch from that ticket, and report if it solves your problem.</p> Mon, 19 Apr 2010 10:05:29 +0000 mfoss comment 55600 at https://www.ejabberd.im Same problem here https://www.ejabberd.im/node/3985#comment-55592 <p>... and already tried with max_fsm_queue.<br /> I've pymsn-t and pyicq-t running for years now, yesterday I installed spectrum transports (currently for testing only), and ejabberd crashed overnight.<br /> Right now the situation is like that: when no spectrum transport is running, ejabberd uses almost 0% cpu and about 613M Ram. After starting a spectrum transport (only one, doesn't matter which one) the cpu load of ejabberd increases to 100% after a few minutes.<br /> I played around with the configuration options in ejabberd, tried almost everything - reads like this now:</p> <pre> {5351, ejabberd_service, [{access,local},{max_fsm_queue, 5}, {max_stanza_size, 65536},{shaper, c2s_shaper}, {backlog, 2},{service_check_from, false}, {host, "msntesting.domain.tld", [{password, "random"}]}]},</pre><p> I changed my ejabberd loglevel from 2 to debug and there are very much messages like:</p> <pre>=INFO REPORT==== 2010-04-18 14:15:37 === D(&lt;0.10861.0&gt;:ejabberd_router:301) : route from {jid,[],"msntesting.server.tld",[],[], "msntesting.server.tld",[]} to {jid,[],"msntesting.server.tld",[],[], "msntesting.server.tld",[]} packet {xmlelement,"iq", [{"type","error"}, {"to","msntesting.server.tld"}, {"from","msntesting.server.tld"}, {"id","uid:4bcaf79d:1ded0839"}], [{xmlelement,"ping",[{"xmlns","urn:xmpp:ping"}],[]}, {xmlelement,"error", [{"code","405"},{"type","cancel"}], [{xmlelement,"not-allowed", [{"xmlns","urn:ietf:params:xml:ns:xmpp-stanzas"}], []}]}, {xmlelement,"error", [{"code","405"},{"type","cancel"}], [{xmlelement,"not-allowed", [{"xmlns","urn:ietf:params:xml:ns:xmpp-stanzas"}],</pre><p> Any ideas whats going on here/how to fix this?</p> <p>Edit to add some additional information: I'm using Ejabberd 2.1.3 compiled with Erlang R13B04 on Gentoo. I did set max_fsm_queue to values between 5 and 1000, always the same result. Also I tried to disable mod_ping for the domain Spectrum is connecting to.<br /> If I should post more of the logfiles or try something else (perhaps without downgrading Erlang) just tell me, I'll do ;)</p> Sun, 18 Apr 2010 18:53:44 +0000 kamistral comment 55592 at https://www.ejabberd.im Re: ejabberd burning cpu and eating memory https://www.ejabberd.im/node/3985#comment-55506 <p>I don't think the problem is in Erlang version. As I see from the crash dump, the problem is in your transport. Do you have max_fsm_queue option configured? Refer to <noindex><a href="http://www.process-one.net/en/ejabberd/guide_en#listened-options" title="http://www.process-one.net/en/ejabberd/guide_en#listened-options" rel="nofollow" >http://www.process-one.net/en/ejabberd/guide_en#listened-options</a></noindex> for the explanation of this option.</p> Mon, 05 Apr 2010 15:47:41 +0000 zinid comment 55506 at https://www.ejabberd.im Just downgraded to https://www.ejabberd.im/node/3985#comment-55504 <p>Just downgraded to erlang-R13B-01.3.fc12.i686.rpm and everything runs fine again.<br /> Beam.smp now uses only 26MB and 0.0% CPU.<br /> I think there is a problem with that particular erlang version.</p> Mon, 05 Apr 2010 13:47:39 +0000 ploink comment 55504 at https://www.ejabberd.im