[ejabberd] how do _you_ close bosh sessions?

Stephan Maihöfer sma at turtle-entertainment.de
Tue Jan 26 14:02:12 MSK 2010


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
> 


More information about the ejabberd mailing list