• Post Reply Bookmark Topic Watch Topic
  • New Topic

Number of users a website can service  RSS feed

 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to know how many number of users can a website serve ?

Is there a Java API that lets me do so ?

Thanks in advance ...

[ UD: removed the superfluous exclamation marks from the subject line ]
[ May 07, 2008: Message edited by: Ulf Dittmer ]
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java can handle a large traffic load, if the progam is written correctly and is running on powerful equipment. There is no simple answer beyond this. Do you have an actual site to build, or is this something you are interested in doing.
[ May 06, 2008: Message edited by: Nicholas Jordan ]
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I'm trying to do is just a simple application that accepts the address of a website as an input and returns the number of users that the site can concurrently serve ...

Thanks ...
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That number depends on so many variables that there is no definite answer, even if some site might be willing to divulge it (which I highly doubt).
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to perform 'Capacity Planning', but from experience it is important to define your goals, metrics and methods before hand and make sure you stick to them.

You need a way to create a load on your system, or an equivalent test system, and these runs need to be repeatable and comparable. You need to define how you will gather the metrics defined at the start, and make sure the gathering of metrics doesn't impact the performance of the system. (sounds obvious, but you feel silly otherwise)

You need to define the variants (such as database or server connections) and provide a comparison of changes in behaviour for these values.

Personally we currently have (on our high usage sites) 40 database connections per application, and each application accepts 40 active and 40 queued threads. I believe we can can accept higher numbers, particularly in the queued threads, but I am hesitant to make further changes without knowing the system behaviour beforehand.

The point you are looking for is 'diminishing returns'. You can server requests faster with two connections rather than one, but at some point this benefit stops and can actually decrease. The turning point can be used as the optimum for that particular metric.
[ May 07, 2008: Message edited by: David O'Meara ]
 
Paul Michael
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Vassili Vladimir:
Hi,

I want to know how many number of users can a website serve ?

Is there a Java API that lets me do so ?



you should be able to "approximate" the breaking point of your web server with the help of tools for performance testing like OpenSTA (it's non Java though).

Once you have defined the "acceptable" and "unacceptable" metrics you can run scripts which simulate user load and see at which point the results change from acceptable to unacceptable.

Of course this is easier said than done.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!