[JDEV] blargh

Ryan Eatmon reatmon at mail.com
Wed Nov 8 08:31:22 CST 2000


I can tell you for a fact that jpolld can handle upwards of 10,000
connections.  (We've done extensive simulations that show this...)  I
was working on the simulation aspect of it so I don't know how to
configure jpolld to handle it exactly, but here are some things that I
know were done:

  - "ulimit unlimited"  - this allows you to have unlimited
                          resources available in this shell
                          process.  Including the number of 
                          file handles that can be open.
  - kernel setting - not 100% sure on this one, but I think
                     that there is a kernel setting that allows
                     for more file handles. (I think. =P )
                     ulimit can only go up to the value set
                     here...  But I can't tell you what that
                     setting is.

I will ping the developer of jpolld for more information.  Good luck! 
It can be done.

Ryan


Dennis Noordsij wrote:
> 
> Hello,
> 
> I seem to be in a different timezone from most of you, since every morning
> when I check my mail I have dozens of mails and during the day I hardly get
> any :-) (I'm in Finland btw).
> 
> Anyway, based on previous discussions in this list I have experimented a
> little further, managed to compile jpolld (remove the -lsocket reference in
> the Makefile), replace the pthsock stuff in jabber.xml with an <accept> for
> jpolld, etc.
> 
> It seems to work, I can connect to jabberd and it seems to go through jpolld.
> 
> I also switched to kernel 2.4.0-test10, and I am testing on a P3-700 with
> 128Mb RAM.
> 
> Impressions, jabberd used to always shoot up to 90+% CPU usage, now with
> jpolld it looks very neat, both CPU and memory resource usage for both are
> very low.
> 
> However, there is still a limit at 1020 connections. Since I am using my own
> machine to run simulate3 on I am actually using double that number of
> sockets, so I don't think it's a tuning thing in my kernel.
> 
> The error as reported by jpolld:
>  [1] Adding conn at 1020
>  [1] Max PFD: 1020
>  [1] Connfd messed up
>  [1] Error setting conn flags[1]
>  ....
>  [1] Poll failed: Invalid argument
>  [1] Closing down thread
>  base_accept: connection died on accepted socket
> 
> I think I compiled jabberd without pthsock at all, but there it still depends
> on the libs. I'll have a look at that again.
> 
> Regards,
> Dennis

-- 

Ryan Eatmon                   reatmon at jabber.org 
------------------------------------------------
Jabber.org - Perl Team    jid:reatmon at jabber.org




More information about the JDev mailing list