[jadmin] max concurrent connections under jabber1.4?

Matthias Wimmer m at tthias.eu
Tue Mar 13 12:26:28 CDT 2007


Hi Pat!

Malone, Pat schrieb:
> I set up the jabber testsuite to created and  log in 1000 more users.
> 
> However, the jabber server just stops accepting connections after 1005
> active users.
> No error from jabberd, no errors on the OS, everything just hangs.
> 
> Is there some limitation on pthreads or some other part that I've run
> into?

jabberd14 does not use pthreads but libpth ... but yes, it is a
limitation of libpth, which cannot handle more than 1024 file
descriptors (and therefore not more than 1024 connections).

There are two solutions to work around this problem:

1. If you have more than one IP address available, you can cluster the
client connection manager. The 1024 descriptor limits is by process.
Therefore if you have multiple processes handling the connections, you
can have more than 1024 concurrent users.

2. In any case you could change to jadc2s which is an alternate client
connection manager for jabberd14. This component does not depend on
libpth and therefore is able to handle more than 1024 concurrent
connections. jadc2s is available at http://download.jabberd.org/jadc2s/


Matthias

BTW: Probably the dependancy on libpth will be removed from jabberd14 soon.

-- 
Matthias Wimmer      Fon +49-700 77 00 77 70
Züricher Str. 243    Fax +49-89 95 89 91 56
81476 München        http://ma.tthias.eu/



More information about the JAdmin mailing list