commandline tool to download stream from Red5 ?

View: New views
2 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

Re: commandline tool to download stream from Red5 ?

by Walter Tak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Jep it's java. I was fighting with it on another testbed because it needed ant, javac and junit to compile/build.
Finally was able to build it and then found out I could use the "binary" version (which is just a pre-made jar). The bug in 0.5 didn't really matter to me (if you start 10 streams the total execution will stop as soon as one of the streams completes (Peter already mentioned that).
 
But since I wanted to test a single stream in the first place (where flazr will stop more or less simultaneous if you fire up 10 threads at the same time) I could have saved me the trouble (ant didn't want to build itself for example ; had to fiddle in the build.xml since it didn't want to pass on junit jars etc).
 
It's an odd tool, with a "groovy" interface. A script language to start a java-tool. Never thought I'd end up there regarding development ;)
 
Downside is the insane memory usage. Just started 100 threads and flazr quickly ate up around 1 gbyte of memory on my testclient and the test crashed halfway reporting disconnects from Red5 due to the dreaded insufficientBW error. And because of the 0.5 Flazr bug all threads came to a grinding halt. Nevertheless I'm happy have a simple 'commandline tool' to do some console testing.
 
I'll use some traffic-shaper on my client (cbq + tc + iproute2) to see if I can avoid that insufficientBW problem for longer tests.
 
Is flazr written in C? I thought it was Java.

On Thu, Jul 2, 2009 at 4:46 PM, Walter Tak <walter@...> wrote:
rtmpdump couldn't connect to my Red5 server.
 
flazr.com works fine for me. It's as independent as possible from any libaries, compilers and it's 100% commandline.
 
Thanks again to Peter Thomas for pointing to that package and supplying a nice example script.
 
 
rtmpdump?

On Thu, Jul 2, 2009 at 10:22 AM, Art Clarke <aclarke@...> wrote:
Also, the Red5 automated systemtest framework does something similar to this (although it requires an X-server running in VNC-headless mode).  It uses the flashplayer itself (on Linux that means it must run on a 32-bit os) so that we don't have to debug some other RTMP tool, and can take screen-shots of the headless flashplayer to help debug what's going wrong.

It uses some code Xuggle previously released under "theyard" open-source project and is licensed under LGPL.  You can find the relevant library and code here:
http://code.google.com/p/theyard/

That library builds tests, but also wraps the NetConnection and NetStream objects in fully tested state-machines to make it much easier to connect and disconnect from servers.

We no longer actively work on this project, but the code may be useful to some (altough I do maintain the usage of it in the Red5 systemtest framework).

- Art


On Thu, Jul 2, 2009 at 8:01 AM, Daniel Rossi <electroteque@...> wrote:
http://jira.red5.org/confluence/display/appserver/Benchmark+Profiler


On 02/07/2009, at 11:48 PM, Walter Tak wrote:

You mean Red5bench which requires Red5 itself ? Since that's not technically an option for me, right now.

Mate I have a tool built for this very purpose however the wiki entry  for this is down and will be down for a while.

On 02/07/2009, at 11:01 PM, Walter Tak wrote:

On Wednesday 01 July 2009 7:45:48 pm Walter Tak wrote:
Looking for a decent tool to download with Linux (not Windows, got
tools for that) on the commandline streams (VOD) from Red5 to  emulate
a single end-user.

I have a need for this as well.  Up to now, I've just been using
multiple instances of a generic FLV flash player (I've been using the
JWPlayer), but this won't cut it for high volume load testing.

I didn't think it would be too hard to write a dumb client using the
red5 libraries, but I have not done it yet.  I will give it a go  today
and let you know how it worked out.

(Actually, as I write this, it looks like Peter Thomas just sent an
example using another rtmp library, so maybe my tinkering is not
necessary)

That is correct ; you can't do a decent test of a large production- enviroment (multiple servers) with just one client behind a thin adsl/cable connection. It's good enough to test the functionality  but stability, cpu-load or even stress-tests are out of the question.

Currently trying to get Flazr to work. Will keep you posted.

Walter


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org



--
http://www.xuggle.com/
xu‧ggle (zŭ' gl) v. To freely encode, decode, and experience audio and video.

Use Xuggle to get the power of FFmpeg in Java.

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
And do this, knowing the time, that now it is high time to awake out of sleep;
for now our salvation is nearer than when we first believed.


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


Internal Virus Database is out-of-date.
Checked by AVG.
Version: 7.5.560 / Virus Database: 270.12.26/2116 - Release Date: 15-05-09 06:16

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
And do this, knowing the time, that now it is high time to awake out of sleep;
for now our salvation is nearer than when we first believed.


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


Internal Virus Database is out-of-date.
Checked by AVG.
Version: 7.5.560 / Virus Database: 270.12.26/2116 - Release Date: 15-05-09 06:16

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: commandline tool to download stream from Red5 ?

by ptrthomas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Fri, Jul 3, 2009 at 6:58 AM, Walter Tak <walter@...> wrote:
Jep it's java. I was fighting with it on another testbed because it needed ant, javac and junit to compile/build.
Finally was able to build it and then found out I could use the "binary" version (which is just a pre-made jar). The bug in 0.5 didn't really matter to me (if you start 10 streams the total execution will stop as soon as one of the streams completes (Peter already mentioned that).
 
But since I wanted to test a single stream in the first place (where flazr will stop more or less simultaneous if you fire up 10 threads at the same time) I could have saved me the trouble (ant didn't want to build itself for example ; had to fiddle in the build.xml since it didn't want to pass on junit jars etc).
 
It's an odd tool, with a "groovy" interface. A script language to start a java-tool. Never thought I'd end up there regarding development ;)
 
Downside is the insane memory usage. Just started 100 threads and flazr quickly ate up around 1 gbyte of memory on my testclient and the test crashed halfway reporting disconnects from Red5 due to the dreaded insufficientBW error. And because of the 0.5 Flazr bug all threads came to a grinding halt. Nevertheless I'm happy have a simple 'commandline tool' to do some console testing.
 

Good to know that it helps.  You can get the latest binary from the below link if you want, just swap out the existing flazr-0.5.jar and edit flazr.bat / flazr.sh to refer to the new jar.

http://flazr.sourceforge.net/files/

Hmm, I guess the "groovy" approach could be why memory usage is so high, because it interprets a script on the fly.  You could consider using a normal compiled Java class that does the same thing (open 100 connections), maybe that would be easier on the memory.  Also you can think of tweaking the JVM options for now, so editing flazr.bat / flazr.sh to replace

java -cp blah

with

java -Xms1024m -Xmx1024m -cp blah

... would set JVM start and max heap size to 1024 MB for example.

Thanks,

Peter.
 
I'll use some traffic-shaper on my client (cbq + tc + iproute2) to see if I can avoid that insufficientBW problem for longer tests.
 
Is flazr written in C? I thought it was Java.

On Thu, Jul 2, 2009 at 4:46 PM, Walter Tak <walter@...> wrote:
rtmpdump couldn't connect to my Red5 server.
 
flazr.com works fine for me. It's as independent as possible from any libaries, compilers and it's 100% commandline.
 
Thanks again to Peter Thomas for pointing to that package and supplying a nice example script.
 
 
rtmpdump?

On Thu, Jul 2, 2009 at 10:22 AM, Art Clarke <aclarke@...> wrote:
Also, the Red5 automated systemtest framework does something similar to this (although it requires an X-server running in VNC-headless mode).  It uses the flashplayer itself (on Linux that means it must run on a 32-bit os) so that we don't have to debug some other RTMP tool, and can take screen-shots of the headless flashplayer to help debug what's going wrong.

It uses some code Xuggle previously released under "theyard" open-source project and is licensed under LGPL.  You can find the relevant library and code here:
http://code.google.com/p/theyard/

That library builds tests, but also wraps the NetConnection and NetStream objects in fully tested state-machines to make it much easier to connect and disconnect from servers.

We no longer actively work on this project, but the code may be useful to some (altough I do maintain the usage of it in the Red5 systemtest framework).

- Art


On Thu, Jul 2, 2009 at 8:01 AM, Daniel Rossi <electroteque@...> wrote:
http://jira.red5.org/confluence/display/appserver/Benchmark+Profiler


On 02/07/2009, at 11:48 PM, Walter Tak wrote:

You mean Red5bench which requires Red5 itself ? Since that's not technically an option for me, right now.

Mate I have a tool built for this very purpose however the wiki entry  for this is down and will be down for a while.

On 02/07/2009, at 11:01 PM, Walter Tak wrote:

On Wednesday 01 July 2009 7:45:48 pm Walter Tak wrote:
Looking for a decent tool to download with Linux (not Windows, got
tools for that) on the commandline streams (VOD) from Red5 to  emulate
a single end-user.

I have a need for this as well.  Up to now, I've just been using
multiple instances of a generic FLV flash player (I've been using the
JWPlayer), but this won't cut it for high volume load testing.

I didn't think it would be too hard to write a dumb client using the
red5 libraries, but I have not done it yet.  I will give it a go  today
and let you know how it worked out.

(Actually, as I write this, it looks like Peter Thomas just sent an
example using another rtmp library, so maybe my tinkering is not
necessary)

That is correct ; you can't do a decent test of a large production- enviroment (multiple servers) with just one client behind a thin adsl/cable connection. It's good enough to test the functionality  but stability, cpu-load or even stress-tests are out of the question.

Currently trying to get Flazr to work. Will keep you posted.

Walter


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org



--
http://www.xuggle.com/
xu‧ggle (zŭ' gl) v. To freely encode, decode, and experience audio and video.

Use Xuggle to get the power of FFmpeg in Java.

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
And do this, knowing the time, that now it is high time to awake out of sleep;
for now our salvation is nearer than when we first believed.


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


Internal Virus Database is out-of-date.
Checked by AVG.
Version: 7.5.560 / Virus Database: 270.12.26/2116 - Release Date: 15-05-09 06:16

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
And do this, knowing the time, that now it is high time to awake out of sleep;
for now our salvation is nearer than when we first believed.


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


Internal Virus Database is out-of-date.
Checked by AVG.
Version: 7.5.560 / Virus Database: 270.12.26/2116 - Release Date: 15-05-09 06:16

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org
< Prev | 1 - 2 | Next >