[ejabberd] Start many xmpp bot with exmpp

CGS cgsmcmlxxv at gmail.com
Fri Jan 6 19:51:23 MSK 2012


Check this link:

http://www.ejabberd.im/benchmark

Your case is related to the shaper because 100 bots is roughly 10 times 
less then the default for Erlang (1024 file descriptors). Also, your 
timeout error shows that your traffic shaper has too low limit, so, your 
messages create a too long queue which crashes the finite state machine 
(gen_fsm in the error message).

CGS





On 01/06/2012 03:48 PM, Shaun Kruger wrote:
> 100 seems a bit low to be an open file limit, but that is still worth
> checking.  Run "ulimit -n" to see what your open file limit is.
> Increase the 'nofile' limit and run your bots again and see if you
> still have the trouble.
>
> Shaun
>
> On Fri, Jan 6, 2012 at 7:08 AM, Alexander Kuleshov
> <kuleshovmail at gmail.com>  wrote:
>> Hello,
>>
>> I have simple xmpp bot written with exmpp. (remade of
>> https://github.com/burinov/xmpp_talker)
>>
>> I started bots in loop with timer sleep of 1 second. When i started about
>> 100 bots i got error:
>>
>> ** exception exit: {timeout,{gen_fsm,sync_send_event, [<0.406.0>,
>> {connect_socket,"game.tophitpoker.com",5222,[]}, 5000]}}
>>
>> Are there any suggestions?
>>
>> Thank you.
>>
>> _______________________________________________
>> ejabberd mailing list
>> ejabberd at jabber.ru
>> http://lists.jabber.ru/mailman/listinfo/ejabberd
>>
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd



More information about the ejabberd mailing list