Testing maximum client connections [Archive] - C Board

PDA

View Full Version : Testing maximum client connections


abachler
04-29-2008, 04:07 PM
I need to test the maximum theoretical and maximum feasable connections a server program can handle. Any suggestions on doing this?

Perspective
04-29-2008, 05:19 PM
keep connecting clients until performance degrades below desired threshold (as defined by "feasible"), then keep adding clients until the server crashes (theoretical) ?

abachler
04-30-2008, 03:09 PM
well, I suppose I will need a couple more systems then, otherwise client load will interfere with server load.

manav
05-01-2008, 02:33 AM
also depends on what method is used for multiple client handling! a less efficient method will crash with small number of connections!

abachler
05-01-2008, 08:27 AM
Yeah, well my code is usually pretty efficient. I'm aiming at a minimum of 1024 connections per server.

manav
05-02-2008, 01:09 AM
What are you doing for multiple clients?

- thread spawning?
- OR thread pool?
- select ?

I also wonder what should we do, besides having powerful server, to handle millions of clients? :(

abachler
05-02-2008, 08:31 AM
Generally large numbers of clients are handled by multiple servers. When a server reaches its limit for example, it can forward additional connections to a different server in the cluster or simply refuse the connection adn the lcient can pick the next server in a list.