[ejabberd] 10MB per BOSH connection on 2.1.1

Kirk Bateman kirk.bateman at gmail.com
Fri Feb 12 13:00:30 MSK 2010


Laurent,

Surely to a certain extent you WANT the connection open for quite a while
with BOSH ? I would assume at least the bosh hold time ?

Cheers

Kirk

On 12 February 2010 09:55, laurent <laurent at bewie.org> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20100212/43dfab29/attachment.html>


More information about the ejabberd mailing list