[JDEV] Jabbers disappointment !!

Vijay Kumar vijay at dsfinternet.com
Wed Nov 29 08:04:19 CST 2000


thanks david
  your information was great !!
but I need to know can jpolld be installed as an independent module ,as its
in the form of standard libaray .
do I need to install tansport layer also ??

from the settings of jabber.xml

 <service id="c2s">

<load><pthsock_client>./pthsock/pthsock_client.so</pthsock_client></load>
    <pthcsock xmlns='jabber:config:pth-csock'>
      <authtime/> <!-- unlimited time to auth, could be
<authtime>10</authtime> for 10 seconds, etc -->
      <rate time="5" points="25"/> <!-- 25 connects in 5 seconds limit (per
IP) -->
      <!-- Karma based I/O rate limits, per connection, see
http://docs.jabber.org/ for more info. -->
      <karma>
        <max>10</max>
        <inc>1</inc>
        <dec>1</dec>
        <restore>5</restore>
        <penalty>-5</penalty>
      </karma>
      <!-- Use these to listen on particular addresses and/or ports.
      <ip port="5223"/>
      <ip port="5222">127.0.0.1</ip>
      -->
    </pthcsock>
  </service>

what we have to change in this so that it will work for jpolld, which is
installed on a seperate machines,
U told me that I need to run many jpolld in one machine on different ports.
I am just figuring out where in mine main jabberd hub configuration file ,I
need to tell about all those
distributed jpolld demones .

thanks in advance

vijay



----- Original Message -----
From: David Waite <dwaite at jabber.com>
To: <jdev at jabber.org>
Sent: Tuesday, November 28, 2000 8:26 PM
Subject: Re: [JDEV] Jabbers disappointment !!


> 1. In practice, I've seen much lower memory usage. There are no longer
> individual user threads but a static pool of threads in 1.2, this reduces
the
> per-user memory requirements from ~50k/User to something closer to 5k.
>
> Also there are already individuals working on a pthreads port.
>
> 2. select() is limited to 1024 file descriptors on every platform I have
seen -
> just a fact of life with the way select() works. poll() isn't. This is
what
> jpolld is for. Note that even root on a linux box will be limited to a
> (separate) max of 1024 open file descriptors until the limit is changed
(with
> the ulimit command)
>
> -David Waite
>
> Vijay Kumar wrote:
>
> >  Hi!!  all
> >         for last couple of days I was figuring out whats the upper limit
of
> > no of users jabber can support
> > concurrently. what I can figure out is that jabber as a server can be
used
> > for small no of clients only .
> >
> > 1) memorey diappointment .
> >     With pth, the individual user threads get 32k (correct me pease if
I'm
> > wrong) so 10,000 users would use up 320MB.
> >     if we are having 1GB of RAM then atmost 30,000 user will be
supported
> > concurrently.
> >     beside this pth is not kernel based so if dual propressor is used
its of
> > no use to jabber .
> > 2)TCP connection :
> > It should also be noted that by default, Linux will only accept 1024 TCP
> > connections. Adding more simo connections requires a kernel patch to
> > increase
> > this limit. to what limit we can increase this ?? If I am not wrong then
one
> > connection will be dedicated to one user
> > ,I meant each tread will be revoling around one connection . will it
means
> > maximum atmost 1024 will be online at a time .
> > but its also known that :
> > sockets absolute limitation is 64k since the port value is 2 bytes wide.
So,
> > with
> > TCP/IP you cannot have more then 64k connections (this is a theoretical
> > maximum, in reality more limitations apply) even if you have a
> > server-machine that can handle the load
> >
> > 3)Distributed approach.
> >      well 1st & 2nd point is true for any server which is based on Pth &
TCP
> >  .
> >      but agin Lot is taked about distributed approch in jabber .but how
to
> > implement it practically is no where written neither
> > in jabber docs nor in mailling archives . suppose if I am running 3
jabber
> > servers in 3 different machines then how to
> > syncronize them or co-relate them .
> > or how to install one master jabber server
> >   with 3-4 salve servers distributed .
> >
> > mine whole aim is to use jabber at very high end of user numbers.
> >
> > thanks in advance !!
> >
> > vijay
> >
> > _______________________________________________
> > 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