ejabberd - Comments for "ejabberd + JAXL = some slowness" https://www.ejabberd.im/node/5069 en Thanks, I will investigate https://www.ejabberd.im/node/5069#comment-58078 <p>Thanks, I will investigate that way and keep you inform if I find my problem.</p> Fri, 25 Nov 2011 00:12:51 +0000 Big Papoo comment 58078 at https://www.ejabberd.im Big Papoo wrote: I set https://www.ejabberd.im/node/5069#comment-58061 <div class="quote-msg"> <div class="quote-author"><em>Big Papoo</em> wrote:</div> <p>I set shapers like this :<br /> . {shaper, mmo1, {maxrate, 256000}}<br /> . {access, c2s_shaper, [{none, admin}, {mmo1, all}]}<br /> - I didn't find any param that would limit a user (my "bot-user") to send more than X messages in a given period. I just found a limit in bandwidth. Btw, "bot-user" is counted in the "all" users in the above "access" rule, right? </p></div> <p>Yes, that config should allow all users except admins to have a maxrate of 256000.</p> <p>You can add a few more zeros to that integer in ejabberd.cfg, just to check if that helps.</p> <p>Or don't provide the shaper option in ejabberd_c2s listener at all, so no shaper is applied.</p> <p>Probably unrelated, but you can try to disable mod_privacy and other modules that</p> <div class="quote-msg"> <div class="quote-author"><em>Big Papoo</em> wrote:</div> <p>I've built a script with JAXL (PHP) and I'm having slowness that require the script to be restarted every hour.<br /> - I'm now reaching the issue I get constantly: The script starts becoming slower and slower to a point that needs it to be restarted. I do so every hour so it doesn't become too slow.<br /> - And also when messages arrive, they seems to arrive (on the players screens) in a bunch, 3-4 at the same time.</p> <p>when I restart the script they are still all connected and the script starts re-routing full speed to all of them. </p></div> <p>Maybe the erlang process that manages the bot xmpp session inside ejabberd gets a huge queue, because for some reason it can't route stanzas as fast as the script sends them.</p> <p>Eper includes a program called Dtop, which is similar to Top but for processes inside the erlang virtual machine:<br /> <noindex><a href="https://github.com/massemanet/eper" title="https://github.com/massemanet/eper" rel="nofollow" >https://github.com/massemanet/eper</a></noindex></p> Mon, 21 Nov 2011 20:10:09 +0000 mfoss comment 58061 at https://www.ejabberd.im