How i can do a server that can be handle a very large number of clients (in same time) between 250,00 to 1,000,000 clients or more ? ,
Because when large number of clients connect to the normal server that failed.

How i can do a server that can be handle a very large number of clients (in same time) between 250,00 to 1,000,000 clients or more ? ,
Because when large number of clients connect to the normal server that failed.

what do you mean? have you tried a multihreaded client/server in java?:http://www.ase.md/~aursu/ClientServerThreads.html And if so i dont think the limitation is the code, with that number of users the limitations fall to the PC hardware/Internet connection... Then you'd need some sort of multicore sever(not really that big a deal im sure a i7 would handle it)...but it must have a huge bandwidth(thats where the catch comes).. see here also:http://discuss.fogcreek.com/joelonsoftware1/default.asp?cmd=show&ixPost=26535&ixReplies=15 and this:http://paultyma.blogspot.com/2008/03/writing-java-multithreaded-servers.html which might help you understand whats causing the fail and about bandwidth and thread per connections etc

Edited 4 Years Ago by DavidKroukamp: n/a

You may also hit a memory limit - I don't know how much heap one connection and its associated application objects use, but even if its only 4k bytes a million connections pushed you over 4 gig. I think you need to look at a server farm that spreads the load over many machines.

You may also hit a memory limit - I don't know how much heap one connection and its associated application objects use, but even if its only 4k bytes a million connections pushed you over 4 gig. I think you need to look at a server farm that spreads the load over many machines.

thank you and that's i will do :)

This question has already been answered. Start a new discussion instead.