<br>Ejabberd needs a lot of memory, and ssl need more memory then plain tcp.<div>Look at your ejabberd.log or erlang.log to investigate.</div><div>Max tcp connections > max ssl connections</div><div><br></div><div>Did you tweak Erl max ports ? <span></span><br>
<div><br></div><div><br>On Thursday, January 17, 2013, Alex Shneyderman wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Jan 17, 2013 at 3:26 AM, Ingela Andin <<a href="javascript:;" onclick="_e(event, 'cvml', 'ingela.andin@gmail.com')">ingela.andin@gmail.com</a>> wrote:<br>
> Hi!<br>
><br>
> 2013/1/15 Alex Shneyderman <<a href="javascript:;" onclick="_e(event, 'cvml', 'a.shneyderman@gmail.com')">a.shneyderman@gmail.com</a>>:<br>
>> Hello, everybody!<br>
>><br>
>> I had a need to STARTTLS-enable tsung's jabber client. I use ssl<br>
>> engine that comes with R15B02. Basically, code takes an existing<br>
>> socket (tsung client - FSM owns that socket) and does an upgrade to<br>
>> TLS at an appropriate moment in time. Like so:<br>
>><br>
>> {ok,SslSocket} = ssl:connect(Socket, [{verify,<br>
>> verify_none},{reuse_sessions,false}]),<br>
>> ssl:controlling_process(SslSocket,ClientFSMPid),<br>
>> ssl:setopts(SslSocket,[{active, once}]),<br>
>><br>
>><br>
>> If I spawn some number of clients (the number varies but anything<br>
>> beyond 200 seems to cause the problem) - connections get dropped and I<br>
>> believe it is the client side that drops the connections (since this<br>
>> behavior is not observed without TLS in the picture). So the<br>
>> questions:<br>
>><br>
>> 1. Is this a known default behavior? If so how do I make it go away,<br>
>> i.e. some of the tests we are running need 2000 clients and plain<br>
>> (non-tls).<br>
><br>
> No it is not. What server are you running against? Servers may allow different<br>
> number of concurrent connections for TLS and non TLS.<br>
<br>
this is ejabberd (2.1.11). I do not think there is<br>
any difference on maximum of connections between<br>
TLS and non-TLS on this server.<br>
<br>
Cheers,<br>
Alex.<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'erlang-questions@erlang.org')">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div></div>