ejabberd - Comments for "2.1.8 high cpu, memory, then erlang crash" https://www.ejabberd.im/node/4972 en I ended up disabling https://www.ejabberd.im/node/4972#comment-57876 <p>I ended up disabling mod_pubsub entirely and things have been stable ever since, no memory growth. Perhaps there is a bug or leak of some kind in mod_pubsub in 2.1.8?</p> <p>Now that it's disabled, many clients cannot get avatars, so I'd like to re-enable it. How can I determine what is causing this?</p> Wed, 28 Sep 2011 15:32:19 +0000 razor comment 57876 at https://www.ejabberd.im Thank you, that is helpful. https://www.ejabberd.im/node/4972#comment-57853 <p>Thank you, that is helpful. Is there any way to determine what client is creating all of the pubsub IQs, or to see while it's running what the queue length is or get other stats on it?</p> <p>Is it possible this is related to mod_shared_roster_ldap caching and somehow the cache is being internally handled as pubsub?</p> <p>Edit: my server is in this state again. I was able to attach a debug console and this snippet from i(). was there:</p> <p>'ejabberd_mod_pubsub_ gen_server:loop/6 9<br /> &lt;0.360.0&gt; gen_iq_handler:init/1 74732575 23044526 1060<br /> dets:req/2 75<br /> &lt;0.361.0&gt; gen_iq_handler:init/1 4181 28374 0<br /> gen_server:loop/6 9<br /> &lt;0.365.0&gt; mod_pubsub:send_loop/1 4181 3307241 0<br /> 'ejabberd_mod_pubsub_ mod_pubsub:send_loop/1 8 </p> <p>How can I take the next step and figure out what is causing mod_pubsub to be in this condition? I did a dump of the entire mnesia database; pubsub components didn't seem out of control. File sizes were fairly small on disk. I guess I could disable mod_pubsub entirely but I'd rather not if I don't have to.</p> Wed, 21 Sep 2011 00:44:28 +0000 razor comment 57853 at https://www.ejabberd.im Memory allocated: https://www.ejabberd.im/node/4972#comment-57851 <pre> Memory allocated: 1.289,840.896 bytes </pre><p>that is 1289 MB</p> <pre> Cannot allocate 583,848.200 bytes of memory (of type "heap"). </pre><p>That is 583 MB</p> <pre> Process: &lt;0.365.0&gt; State: Garbing (limited info) Stack+heap: 145,962.050 Msg queue length: 169.927 </pre><p>That is 145 MB alone for this process, and it has long queue of messages that it hasn't yet handled. The process was "garbage collecting" when the machine crashed.</p> <pre> [&lt;0.365.0&gt;,"jw-rbc.org",mod_pubsub,iq_sm] </pre><p>This process apparently handles Pubsub IQs.</p> Tue, 20 Sep 2011 15:09:54 +0000 mfoss comment 57851 at https://www.ejabberd.im