[JDEV] Breaking the 1020 client barrier

Dennis Noordsij dennis.noordsij at wiral.com
Thu Nov 9 03:06:35 CST 2000


This is how it worked for me..

Kernel 2.4.0-test10. Modified some kernel internals in various .h files to 
for example increase the FD size macro so that select() works on more than 
1024 (default) sockets, (I made it 8192). Also changed the maximum number of 
FD's a process can have from 1024 up to 8192 (also upped 
/proc/sys/fs/file-max). I got most of this info from tuning pages on the web 
and some older posts in this mailing list.

Remove the in the c2s section everything to do with pthsock, and set up an 
accept section, set up a port, ip to listen to on, and a secret. This was 
pure voodoo but seemed to work :-)

Run jabberd, then run jpolld (compiled by removing the -lsocket reference 
from the Makefile - it compiles fine without it) and tell it to connect to 
jabberd to the port you gave, jpolld will now listen on the standard jabber 
port and connections go through jpolld. Again, lucky voodoo :)

I am running the simulator though, and I am not sure what it tries to do 
exactly, but I get up to 2200 clients before the system becomes to washed out 
(P3-700 with 128MB, though running X etc, oh and also running the simulator 
on the same machine! Right, let me try that again by using a different 
machine! :-)

ICQ and Yahoo! transports register themselves, show up in gabber, etc. But 
due to firewalls I haven't been able to connect yet. It seems to be ok though.


What I would like: 

Puhlease someone send me a compiled version of kjabber, I can't get it to 
compile, missing those kde headers etc etc, apt-getting one set removes 
another etc. Blargh

LDAP authentication. I have the MySQL authentication src from the CVS so I'll 
play with that some more.



Regards,
Dennis :-)




More information about the JDev mailing list