Hello,

I am sure this would be a good stress test on the number of simultaneous
streams that red5 can handle:

Create an array of serverStreams which are live streams,
then,
Initialize all those live streams by looping through array.
So if you want like 100 live streams done by red5 do:

private IServerStream[] serverStream;

for(int i=0; i<100; i++)
{
  serverStream[i] = StreamUtils.createServerStream(appScope, "live0");
  SimplePlayItem item = new SimplePlayItem();
  item.setName("on2_flash8_w_audio");
  serverStream[i].addItem(item);
  item = new SimplePlayItem();
  item.setName("on2_flash8_w_audio");
  serverStream[i].addItem(item);
  serverStream[i].start();
}

I'm fairly certain this should work. It will produce 100 live streams by
red5. You could scale it to as many as you want, even 1000, 10000 etc...

Now on the client end do a similar array to subscribe to the stream even if
you don't play it just for the sake of load test.

If someone could write a mock client flash end for subscribing to these
streams by declaring an array of Netstreams, it would form a very good load
test. We could then toggle it higher bit by bit and see how red5 handles
under load and what code breaks. I'll write this load test code today night
but I hope someone else can beat me to it.

On 3/14/07, Ruben Waitz <[EMAIL PROTECTED]> wrote:

Hello,

Just wondering if somebody has FMS2 and Red5 both installed on a single
system.
I'm curious about the server load and performance differences in both
situations (benchmarking). Maybe a dedicated "stresstest" SWF can act as a
client.

I don't know whether such a client is already developed by someone but I
think benchmarking results are quite interesting for everyone.

Ruben

------------------------------------
www.red5tutorials.net: Tutorials - How tos - FAQ


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org




--
C is forever.
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to