
Signature
for email reply remove "/" from address
The 50,000 sockets are the primary requirement, so thats not really
negotiable, fortunately I can split this across 2 or 3 boxes.
Opening the sockets themselves are not the problem, w2k (client edition)
can't do it, but linux certainly can. The problem is reading/writing to
all the sockets in a reasonable time.
So far I am up to 13,000 sockets on one box in two threads using nio.
>>Has anyone tried to monitor 50000 socket connections in java?
>>I have an application that needs to do just that.
[quoted text clipped - 24 lines]
>
> George
George Neuner - 01 May 2005 23:04 GMT
>The 50,000 sockets are the primary requirement, so thats not really
>negotiable, fortunately I can split this across 2 or 3 boxes.
I would bet the actual spec is 50000 *connections* rather than 50000
sockets. You have to decide whether they are the same.
>The problem is reading/writing to all the sockets in a reasonable time.
Performance is another reason for using fewer sockets. Depending on
the hardware, drivers, TCP and JVM implementation, each socket
operation can result in several context switches and require multiple
copies be made of the user data. It may make a big difference if you
can access the drivers directly using JNI or using an optimized
library rather than going through whatever your JVM supplies..
George

Signature
for email reply remove "/" from address