[ejabberd] 10MB per BOSH connection on 2.1.1

Pablo Platt pablo.platt at yahoo.com
Fri Feb 12 14:20:44 MSK 2010


otp version: "R12B" (ubuntu Jaunty erlang package)

stanza max size shouldn't be a problem.
It's a js client so users can only send small messages.




________________________________
From: laurent <laurent at bewie.org>
To: ejabberd at jabber.ru
Sent: Fri, February 12, 2010 1:17:32 PM
Subject: Re: [ejabberd] 10MB per BOSH connection on 2.1.1

I think the number of your tcp connections is not directly your memory
problem but I know if you have un large number of bosh user it's would
be a problem.

For your memory consummation check otp version, your stanza max size.




On Fri, Feb 12, 2010 at 11:48 AM, Pablo Platt <pablo.platt at yahoo.com> wrote:
> Laurent,
>
> I'm running ejabberd BOSH on port 5280 behind nginx that proxy the requests
> from port 80.
>
> Info from my system right now:
>
> Online BOSH users: 80
>
> Memory of beam - 344MB
>
> Number of open connections on port 5280:
> netstat -an |grep :5280 |wc -l
> 269
>
> Number of open connections on port 80:
> netstat -an |grep :80 |wc -l
> 148
>
> A factor of 2-3 might suggest I can optimize keep alive a bit but I don't
> think it can explain 10MB per online user.
> Is there anything else I can check?
>
> Thanks
>
> ________________________________
> From: laurent <laurent at bewie.org>
> To: ejabberd at jabber.ru
> Sent: Fri, February 12, 2010 11:55:25 AM
> Subject: Re: [ejabberd] 10MB per BOSH connection on 2.1.1
>
> A problem with bosh is it open a lot of tcp connections..So try to
> play with tcp parameters in the linux kernel to reduce the time to
> close connections
>
> some sysctl parameters:
> net.ipv4.tcp_keepalive_time
> net.ipv4.tcp_keepalive_intvl
> net.ipv4.tcp_keepalive_probes
>
> --
> Laurent
>
>
>
> On Fri, Feb 12, 2010 at 10:44 AM, Anton Belyaev <anton.belyaev at gmail.com>
> wrote:
>> 2010/2/12 Pablo Platt <pablo.platt at yahoo.com>:
>>> Hi
>>>
>>> I'm running ejabberd 2.1.1
>>> With only 30 online (real) BOSH connections ejabberd consume 266MB RAM
>>> top:
>>> PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
>>> 4620 root        20   0    692m 266m 1868 S      0         52.0
>>> 780:25.91  beam.smp
>>>
>>> When I have 120 online users ejabberd takes all the free RAM.
>>>
>>> I'm using the default config file.
>>> Users are only sending text with BOSH, no file transfer or images.
>>>
>>> Is there something I can do to reduce the memory?
>>>
>>> Thanks
>>
>> I was never happy with ejabberd's BOSH.
>> I use http://code.stanziq.com/punjab/ in front of ejabberd for BOSH.
>> With 1000 online BOSH users punjab takes 200 MB, plus ~300k per
>> connection on ejabberd's side.
>>
>> Anton.
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20100212/032af0df/attachment-0001.html>


More information about the ejabberd mailing list