[JDEV] Performance of jabber and IQ messages
Andy Hird
andyh at myinternet.com.au
Sun Feb 4 17:25:50 CST 2001
Hi there, Sorry its taken so long to get back to you.
Most of my problems I've traced to using Net::Jabber (the perl API). Both
authentication and speed problems go away when I switched to using the C API.
I'll maybe try and get some sample code to the Net::Jabber people for the
authentication problem (although it may actually be a problem in the server).
Its simple to repro - have several (> 1) perl clients attempting to connect to
the jabber server with the same username (resource can be different) using
mod_auth_0k or mod_auth_digest style authentication at the same time.
Eventually one or more of the clients will fail to authenticate.
Thanks
Andy
On 24-Jan-2001 Thomas Muldowney wrote:
> using the iq get for auth it should be handing back a handing back a
> different
> token to auth with.
>
> Let me know about the server performance (CVS more specifically since we're
> close to 1.4).
>
> --temas
>
> On Wed, Jan 24, 2001 at 10:44:31AM +1100, Andy Hird wrote:
>> I used the precompiled static binaries from jabber.org of the 1.2 server.
>>
>> I hardly changed the config. I commented out the <update> line and changed
>> the
>> <host> section to be the name of my local host.
>>
>> I've just got the 1.2 source (and the CVS tree) and compiled it so maybe
>> I'll
>> see if that makes much of a difference.
>>
>> I've also found what looks like a bug in the 0k authentication. If you have
>> two
>> clients try to authenticate with the same username and password but a
>> different
>> resource then the second fails. It looks like the client which contacts
>> second
>> gets the same hash as the first client (and things start going wrong from
>> there). I can provide more details (and a demo client with the perl
>> libraries).
>> Not sure whether this happens in 1.4
>>
>> Andy
>>
>>
>> On 23-Jan-2001 Thomas Muldowney wrote:
>> > Sorry for the delayed reply... How did you build the server, what is the
>> > config?
>> > Anything else you feel I should know to anser more easily?
>> >
>> > --temas
>> >
>> > On Fri, Jan 19, 2001 at 12:16:18PM +1100, Andy Hird wrote:
>> >> Oops mistake.
>> >> I'm actually seeing times of 0.5 s for complete round trip of my requests
>> >> -
>> >> so
>> >> ..25 s for the request and .25s back again. That time doesn't include any
>> >> processing done by the RPC server (ie. decoding SOAP messages and
>> >> executing
>> >> the
>> >> remote precedure call). Its just the time it takes for the message to go
>> >> via
>> >> jabber from one jabber client to another.
>> >>
>> >> Andy
>> >>
>> >> On 19-Jan-2001 Andy Hird wrote:
>> >> >
>> >> > I'm seeing an average time of around .5 s for an IQ message to go from
>> >> > one
>> >> > jabber client to another. Both clients and the server are running one
>> >> > the
>> >> > same
>> >> > machine (its Debian Linux with a 2.2 kernel).
>> >> > The messages are pretty small - around 800 bytes for both the outgoing
>> >> > request
>> >> > and the incoming response.
>> >> >
>> >> > I'm writing the clients in perl with the module Net::Jabber.
>> >> >
>> >> > Anyone have similar timings? Any advice?
>> >> >
>> >> > Andy
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > jdev mailing list
>> >> > jdev at jabber.org
>> >> > http://mailman.jabber.org/listinfo/jdev
>> >>
>> >>
>> >> _______________________________________________
>> >> jdev mailing list
>> >> jdev at jabber.org
>> >> http://mailman.jabber.org/listinfo/jdev
>>
>>
>> _______________________________________________
>> jdev mailing list
>> jdev at jabber.org
>> http://mailman.jabber.org/listinfo/jdev
More information about the JDev
mailing list