[JDEV] got jabberd and jpolld working on separate machines
John Hebert
john at vedalabs.com
Fri Dec 15 17:10:58 CST 2000
Um, as it normally happens with voodoo and software, it started working
as soon as I complained... :)
[root at 192.168.0.24 jabberd]# ./jabberd
[john at 192.168.0.86 src]$ ./jpolld -h 192.168.0.24 -d 5225 -n c2s -s test
Listening on NULL:5222
[root at 192.168.0.24 jabberd]# ./jabberd
20001215T22:52:45: [notice] (-internal): base_accept: new connection on
port 5225 from ip
192.168.0.86
[john at 192.168.0.55 simulator]$ cat simulate.cfg
server=192.168.0.86
port=5222
users=2000
message_delay=5
login_delay=2
login_duration=300000
user_letter=r
message=Hi There
message=How are you?
<rest of simulate.cfg snipped>
[john at 192.168.0.55 simulator]$ ./simulator
1 users connected
2 users connected
3 users connected
...
Previously, it was connecting but then immediately disconnecting. Not
sure what changed, other than rebooting a crashed machine.
Now, my next problem to solve is getting past ~1020 users.
I'm using the 2.4.0-test12 kernel and have tried various kernel tweaks
("ulimit -n 4096", changes to various header files) but no luck.
I'm wiping out the current box and putting a fresh install of RedHat 6.2
with the 2.4.0-test12 kernel and will document the exact tweaks. Once I
have that, I'll post my test results to the list.
Thanks for the help.
John Hebert
Dennis Noordsij wrote:
>
> Hi,
>
> Please post more information regarding the exact problem. Will the simulator
> not run at all? Will it not connect? (what does a network analysis say, do
> jpolld and jabber ever see any connection attempts?) Does it connect but then
> disconnect straight away? Etc :-)
>
> Regards,
> Dennis
>
> On Saturday 16 December 2000 00:33, John Hebert wrote:
> > My apologies to those who already have done this. I wanted to share my
> > configuration for getting jabberd, jpolld working on separate machines.
> >
> >
> > 1. jabberd on 192.168.0.24
> > jabber.xml:
> > ...
> > (other "c2s" using pthsock replaced with following)
> > <!-- Service to manage incoming client socket connections. -->
> > <service id="c2s">
> > <host>192.168.0.86</host>
> > <accept>
> > <ip/>
> > <port>5225</port>
> > <secret>test</secret>
> > </accept>
> > </service>
> > ...
> >
> > 2. jpolld on 192.168.0.86
> > ./jpolld -h 192.168.0.24 -d 5225 -n c2s -s test
> >
> > 3. simulator on 192.168.0.86
> > simulate.cfg:
> > server=192.168.0.86
> > port=5222
> > users=2000
> > message_delay=10
> > login_delay=5
> > login_duration=300000
> > user_letter=r
> > message=Hi There
> > message=How are you?
> > message=This is a long, \
> > multiline message.
> > message=This message should be quite a bit longer than the others. \
> > I dunno why it should be longer, I just decided that
> > it should, \
> > that's all!
> > message=This is another short message!
> >
> >
> > However, I am not able to get jpolld and the simulator running on
> > separate machines. If anybody can give me suggestions or ideas on how to
> > do that, it would be appreciated.
> >
> > Thanks,
> > John Hebert
> >
More information about the JDev
mailing list