[ejabberd] how do _you_ close bosh sessions?

Kirk Bateman kirk.bateman at gmail.com
Tue Jan 26 14:09:17 MSK 2010


Stephan,

That would admittedly make sense to me, obviously there would be some others
in use, but I think you are on the right track there.

I'm technically on the same side of things as you, so I don't have a
definate answer either. I'm following this thread with interest though.

Cheers

Kirk

2010/1/26 Stephan Maihöfer <sma at turtle-entertainment.de>

> hi,
>
> i am more on the software-developer side so i am asking:
>
> we set "ulimit -n 128000" at the start in ejabberdctl,
> isn't that the file handles limit? that would mean
> we could do about 64k connections given your calculation, right?
>
> greetings,
> stephan
>
> > -----Original Message-----
> > From: ejabberd-bounces at jabber.ru
> > [mailto:ejabberd-bounces at jabber.ru] On Behalf Of Kirk Bateman
> > Sent: Tuesday, January 26, 2010 10:36 AM
> > To: ejabberd at jabber.ru
> > Cc: <ejabberd at jabber.ru>
> > Subject: Re: [ejabberd] how do _you_ close bosh sessions?
> >
> > Could it be a file handles limit ? Think about it 1 for each
> > incoming connection to bosh, plus 1 to pass that connection
> > to the ejabberd server.
> >
> > Just a thought.
> >
> > Cheers
> >
> > Kirk
> >
> > On 26 Jan 2010, at 08:37, Stephan Maihöfer <sma at turtle-
> > entertainment.de> wrote:
> >
> > > Hi,
> > >
> > > yeah, that figure was what i was getting from guides and benchmarks
> > > all over the net. the strange thing for us is, we do not run into
> > > memory problems or anything like that, it just seems that we are
> > > running into some kind of limit with our use of the http_bind
> > > interface.
> > >
> > > could you give me some pointers on where to look for "proper OS
> > > tuning"?
> > >
> > > thanks in advance,
> > > stephan
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: ejabberd-bounces at jabber.ru im Auftrag von Mickaël Rémond
> > > Gesendet: Di 26.01.2010 07:09
> > > An: ejabberd at jabber.ru
> > > Betreff: Re: [ejabberd] how do _you_ close bosh sessions?
> > >
> > > Hello,
> > >
> > > Regarding the scale it depends on you server and scenario but with
> > > proper OS tuning you should not have many problem reaching
> > 10k-15k per
> > > node.
> > >
> > > --
> > > Mickaël Rémond
> > >  http://www.process-one.net/
> > >
> > > Le 25 janv. 2010 à 13:02, Stephan Maihöfer <sma at turtle-
> > > entertainment.de> a écrit :
> > >
> > >> hi,
> > >>
> > >> yes, i know that, but you'd have to either have the user
> > click on a
> > >> "disconnect" button or something like that to disconnect that way.
> > >>
> > >> in normal application programming you could just disconnect before
> > >> you actually close the application, since you got some kind of
> > >> "event". unformtunately the "onUnload" event in a browser is
> > >> triggered in very different places in different browsers.
> > >>
> > >> fron the jquery documentation, for example:
> > >>
> > >> "The exact handling of the unload event has varied from version to
> > >> version of browsers.
> > >>  For example, some versions of Firefox trigger the event
> > when a link
> > >> is followed, but not  when the window is closed. In
> > practical usage,
> > >> behavior should be tested on all  supported browsers, and
> > contrasted
> > >> with the proprietary beforeunload event."
> > >>
> > >> this potentially leaves a lot of "dangling" connections
> > that need to
> > >> be closed by the server in any case...does this affect performance?
> > >>
> > >> greetings,
> > >> stephan
> > >>
> > >>> -----Original Message-----
> > >>> From: ejabberd-bounces at jabber.ru
> > >>> [mailto:ejabberd-bounces at jabber.ru] On Behalf Of Mickaël Ré mond
> > >>> Sent: Monday, January 25, 2010 12:56 PM
> > >>> To: ejabberd at jabber.ru
> > >>> Subject: Re: [ejabberd] how do _you_ close bosh sessions?
> > >>>
> > >>> Hello,
> > >>>
> > >>> The way to close Bosh session is with terminate:
> > >>> http://xmpp.org/extensions/xep-0124.html#terminate
> > >>>
> > >>> Le 25 janv. 2010 à 11:18, Stephan Maihöfer a écrit :
> > >>>
> > >>>> hi,
> > >>>>
> > >>>> we are still struggling to get more thant 2000 users per node
> > >>>> connected to the http_bind interface of ejabberd. on friday
> > >>> we updated
> > >>>> to the new bugfix release of ejabberd 2.1.1 and now we
> > see a lot of
> > >>>> these:
> > >>>>
> > >>>> =ERROR REPORT==== 24-Jan-2010::14:03:54 === Jan 24
> > 14:03:54 jabber3
> > >>>> EJABBERD: W(<0.31555.393>:ejabberd_http_bind:486) :
> > >>>>   Session timeout. Closing the HTTP bind session:
> > >>> "510141451566d06b341fd5f64933ea38a3a83d31"
> > >>>>
> > >>>> would that be a problem to server performance? how can i
> > set that
> > >>>> timeout and more importantly:
> > >>>>
> > >>>> how do you guys using bosh and ejabberd close bosh sessions
> > >>> that you
> > >>>> open in the browser? we have implemented the disconnect on
> > >>>> window.onUnload, but this seems to be not really well
> > suited since
> > >>>> browsers interpret that differently. do you worry about that at
> > >>>> all?
> > >>>>
> > >>>> what is your numbers in "users per node" using ejabberd
> > http_bind?
> > >>>>
> > >>>> greetings,
> > >>>> stephan
> > >>>> _______________________________________________
> > >>>> 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
> > >
> > > <winmail.dat>
> > > _______________________________________________
> > > 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/20100126/24fc8c9c/attachment-0001.html>


More information about the ejabberd mailing list