C
cmk128
Hi
from
http://www.onjava.com/pub/a/onjava/2002/10/02/javanio.html?page=4
Author said "The JVM thread-management machinery is designed to handle
a few tens of threads, not hundreds or thousands", true?
If i have one jave server that need to serve 1 trillion connection,
in traditional thread per connection design, the java server will hang
because the numberious connection will eat up all the memory by create
too many thread. How can i set a count of max_number_of_connection?
For NIO, i don't think it can do it. Firstly, although you can tell
the selector stop select when the server is very busy, but don't select
doesn't mean no socket income. A million of client try to open a socket
to your server, it will bomb your ServerSocketChannel object. Am i
correct?
so what is the *BEST* solution, any idea?
thanks
from Peter
from
http://www.onjava.com/pub/a/onjava/2002/10/02/javanio.html?page=4
Author said "The JVM thread-management machinery is designed to handle
a few tens of threads, not hundreds or thousands", true?
If i have one jave server that need to serve 1 trillion connection,
in traditional thread per connection design, the java server will hang
because the numberious connection will eat up all the memory by create
too many thread. How can i set a count of max_number_of_connection?
For NIO, i don't think it can do it. Firstly, although you can tell
the selector stop select when the server is very busy, but don't select
doesn't mean no socket income. A million of client try to open a socket
to your server, it will bomb your ServerSocketChannel object. Am i
correct?
so what is the *BEST* solution, any idea?
thanks
from Peter