954,549 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Server Handle Too Many Users

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.

mohamed moamen
Light Poster
42 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 
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

DavidKroukamp
Practically a Master Poster
Team Colleague
693 posts since Dec 2011
Reputation Points: 282
Solved Threads: 169
 

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.

JamesCherrill
Posting Genius
Moderator
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
 
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 :)

mohamed moamen
Light Poster
42 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You