[jadmin] max concurrent connections under jabber1.4?
Malone, Pat
pat.malone at lsi.com
Wed Mar 14 18:53:19 CDT 2007
Hi all.
Here is my update.
I grabbed jadc2s-0.9.1-RC1 and introduced it into my test environment.
<Perhaps I should have jadc2s-0.9.0?>
Some details about the environment:
kernel: nofiles(descriptors) 32768
jadc2s.xml: <max_fds>10007</max_fds>, iplog enabled, compiled with SSL
Using the jabbertest suite from http://sourceforge.net/projects/jabbertest/, I was able to get 7000 concurrent connections using the simple passive login tool (pasvlogin). (See top detail below for those interested)
So this is promising.
However...
The jadc2s process always hangs after a time and will not accept any connections or pass traffic.
I have to kill/restart it.
Should I back off using the 0.9.1-RC1 candidate?
--- Top with 7000 concurrent users using jadc2s ----
Tasks: 60 total, 1 running, 59 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.2% us, 0.0% sy, 0.0% ni, 99.8% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 2074952k total, 312676k used, 1762276k free, 19368k buffers
Swap: 2031608k total, 0k used, 2031608k free, 148072k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
19093 jabber 25 0 63828 59m 1492 S 0 2.9 11:17.96 lt-jadc2s
3471 jabber 16 0 30480 27m 1364 S 0 1.4 1:19.97 jabberd
--------------------
Thanks
Pat
-----Original Message-----
From: jadmin-bounces at jabber.org [mailto:jadmin-bounces at jabber.org] On Behalf Of Matthias Wimmer
Sent: Tuesday, March 13, 2007 11:26 AM
To: Jabber server administration list
Subject: Re: [jadmin] max concurrent connections under jabber1.4?
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/
_______________________________________________
JAdmin mailing list
JAdmin at jabber.org
http://mail.jabber.org/mailman/listinfo/jadmin
FAQ: http://www.jabber.org/about/jadminfaq.shtml
_______________________________________________
More information about the JAdmin
mailing list