[ejabberd] 10MB per BOSH connection on 2.1.1

laurent laurent at bewie.org
Fri Feb 12 12:55:25 MSK 2010


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
>


More information about the ejabberd mailing list