--jason
On Thursday, November 21, 2002, at 08:33 AM, Greg Wilkins wrote:
It's important to remember that the jetty nio implementation
is not so much aimed at increasing socket performance - rather it's
aim is to reduce the number of threads required by avoiding
allocating threads to idle connections.
This is more to avoid problems on operating systems that become
undstable or non linear with large numbers of threads allocated.
To date, the few organizations that have tried nio have eventually
gone back to using the normal listener. It has helped while they
had other threading issues with their systems. Once the OS/JVM
have been patched properly, most big irons don't have too much
trouble with large numbers of threads.
Do selects over large number of sockets can prove to be more
difficult for many OS's - even those with /dev/poll.
Note that the nature of the servlet/filter API means that the
true promise of NIO will never be realized until the spec
is radically changed. Some servers may be able to use NIO to
assist with serving static content, but if static content is
to be made a special case, then you may as well serve it from
a kernal server rather than java.
While the servlet spec is in it's current revision, you will
never get data streaming directly from a direct memory mapped
buffer, out the http socket without touching user space.
cheers
Jules Gosnell wrote:> Anything is possible. Anyway, the standard Listener works fine in 1.4
and Greg has chosen to keep it on as the default and make a special case of the NIO Listener which, whilst giving better throughput at high volumes may actually be slower at low ones. I would rather stick with standard Jetty's approach, since I have enough branches to maintain already :-(
If anyone wants to go this way badly, they can donate a PortableListener which wrap-n-delegates to a dynamically chosen Jetty Listener and I will alter the config to use this instead.
Jules
James Higginbotham wrote:
Jules,______________________________________________________________________ __
Um... I hate to say this, but I think Weblogic works around this - it
defaults to nio and backs off to its older non-nio.. They used to call
it their "performance pack" before 1.4, and have since just swapped
theirs for nio I think..
You said it was a static config, but I don't see why you can't abstract
out the strategy, and back off to the default strategy if nio isn't
available. Just a thought, and may sound simpler than the impl, not
sure.. I haven't looked a the Jetty codebase in a while..
James
-----Original Message-----
From: Jules Gosnell [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 6:34 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-dev] Jetty NIO SL in JBoss 3.0.4 no worky
Peter Fagerlund wrote:
1. Jetty's config is static - I could work around ittorsdagen den 21 november 2002 kl 11.46 skrev Jason Dillon:Fuck... how can we make one build work for both?Use a runtime switch ...
2. You would need to build to the LCD (1.3) and then do another build for optional 1.4 components...
Or - we just live with it until we can force a move to 1.4, of course then we will have the same problem with 1.5...
Software huh !
Jules
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/jboss-development
______________________________________________________________
__________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
______________________________________________________________
__________
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
______________________________________________________________________ __
-- Greg Wilkins<[EMAIL PROTECTED]> Phone/fax: +44 7092063462 Mort Bay Consulting Australia and UK. http://www.mortbay.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development