ejabberd - Comments for "CPU Usage Issue with Ejabberd 2.1.8/Erlang R13B04" https://www.ejabberd.im/node/4951 en We thought it was strange https://www.ejabberd.im/node/4951#comment-57835 <p>We thought it was strange too.</p> <p>Here's a version of the python client we used to run the connection test (sorry if the code is messy, we changed it back and forth a few times): <noindex><a href="http://www.sourcepod.com/lzinnd38-5502" title="http://www.sourcepod.com/lzinnd38-5502" rel="nofollow" >http://www.sourcepod.com/lzinnd38-5502</a></noindex></p> <p>In short, the client is supposed to connect 100 users into a predefined test room on the ejabberd server, and have each user send one message then sleep until we kill the script. It was supposed to be a simple test to verify the python client can connect to the server, but the CPU usage blew us away and we're still scratching our heads.</p> <p>Jabsimul was the first thing we ran against ejabberd, actually... we got it to connect but it didn't seem like any messages were being exchanged. Since we weren't ready for benchmarking yet, we moved on to the python script to verify its usability and that's where we are now.</p> <p>I fear that the code in the python client isn't completely ejabberd compliant. If that's the case, we can jump back to Jabsimul or Tsung to verify some basic benchmarks, but eventually we will have to go back to the client and figure out why (if at all) it was causing problems. That said, any insight or suggestions regarding the client would also be greatly appreciated.</p> <p>Thanks.</p> <p>Edit: This thread (<a href="http://www.ejabberd.im/node/3985" title="http://www.ejabberd.im/node/3985">http://www.ejabberd.im/node/3985</a>) talks about adding max_fsm_queue to the server configuration. I'll give that a try and post back with the results.</p> Thu, 15 Sep 2011 17:01:21 +0000 balderi comment 57835 at https://www.ejabberd.im You wrote a script that uses https://www.ejabberd.im/node/4951#comment-57830 <p>You wrote a script that uses xmpppy to login 100 sessions into your ejabberd. Then ejabberd consumes all CPU, and crashes. That crash is strange.</p> <p>What do you users do while connected? It is different if they are idle, or if they send one million messages per second each one.</p> <p>Does it give a crash dump? It may have some additional clue about why it crashes.</p> <p>Can you share your stress tool? Other people may try to reproduce the problem and investigate on their own.</p> <p>Do you get such strange crashes with Jabsimul? <a href="http://www.ejabberd.im/benchmark" title="http://www.ejabberd.im/benchmark">http://www.ejabberd.im/benchmark</a></p> Wed, 14 Sep 2011 11:54:36 +0000 mfoss comment 57830 at https://www.ejabberd.im