tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: How tomcat is handling bandwidth sharing across all request
Date Thu, 12 Sep 2013 14:53:05 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

André,

On 9/11/13 3:41 PM, André Warnier wrote:
> Arun Kumar wrote:
>> Hi
>> 
>> We are developing small video hosting application ,we are not
>> writing any special program for open the video file and send to
>> player , simply we are using tomcat DefaultServlet for above all
>> video request , now we have to benchmark our application for
>> following scenario
>> 
>> 1) video size 100MB (1080i HD) 2) Total Network bandwidth 10Mbps
>> (IN/OUT)
>> 
>> 
>> Now how to calculate how many max thread is allowed for above
>> scenario ,with out interrupting users viewing experience,  here
>> each video response should secure 400kbps bandwidth for no
>> interruption
> 
> 400 Kb/s = (approx.) 0.4 Mb/s
> 
> So in the theoretical very best of cases, you could possibly serve
> 10 / 0.4 = 25 clients at the same time.
> 
> But of course that will never happen, because there will always be 
> something else using a part of that bandwidth at any one time, or 
> preventing some of the 25 threads to be serving a video file.
> 
> So, realistically, count about 50% of that ?
> 
>> 
>> So my question is how many concurrent users can view videos
>> without interrupt then how to test this scenario ,and how tomcat
>> is handling bandwidth sharing across the request
>> 
> 
> Tomcat is not doing anything in terms of sharing the bandwidth
> equally between threads.
> 
> Your best bet is to try this out in reality.  There are a number
> of client programs available that allow you to test this and
> measure the result. This one for instance :
> http://httpd.apache.org/docs/2.2/programs/ab.html Install Apache
> httpd (any 2.x version), it comes with it free.

Better yet, launch a bunch of the actual clients against a test
service, and see how many you can run usably before things start
lagging too much. That should give you a good idea of what is
possible. Hint: you probably need more bandwidth than you think you do.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSMdVRAAoJEBzwKT+lPKRYI7cP/0FSfiIkz6bSPwTW1stCtEYr
Gmke5rHjR33PdKtG4C8M2UgU4cdibuXmtIJn7uBdkVZkT/ufi0LsiFnC63CZkB2Q
9g1/jLyB7dwx67+ZzMnNLU6Wt16/IxHUsHywFYu8DSvaSNwdRr9Tk65AKjU17eii
7xlEzCQN5FMHJSKlmWcThrMjJGwwSSzhQrylylxXtoH31pH5OUUz41onHiRgz7Xp
UgjaurHw+THzJSmSn9Eqjsx5V0PCjAi6xPvjYbZsvdV0j1LrUOMei/mGTYBS7mxk
OpBegz8iRkTuwm7Y3bjnsfoaSkU/3RDrdiNlu0Xb4WLPP6wEYke2hLgfSrpV9suY
h9amPzIlEhWBn6KQzoQY8n06dGMONyWPmwTDSAEl1HhwMH5oYiyMoZuaQsekFNcJ
2zFAAatb3xu+z5kql+p/iafQk/gACjHUjJu1+emn//qcrWlKr7mspnF7IoJgf016
c+rMk/SKQRlD5v/+eGP1Hs/IOytNeIZLzcGfH9Dj6lYQjzQLk0NcctevUlNwjs3/
k+1yDmVGQloR+RJL5hiPBse+hPHiuW2JGajhBdg4Hb569zlEPpDBJAVaAwaESwzq
e8goNdkjMZqzRy6ULqlLAqFhpFwQK1ES38WBYeVkuC0BcSN8pcYyc2pih2lQCdkq
aB2wY4JyF8bZUeWxT0zv
=v0nT
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message