|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 | Next > |
|
|
Re: commandline tool to download stream from Red5 ?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. _______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org |
|
|
Re: commandline tool to download stream from Red5 ?On Fri, Jul 3, 2009 at 6:58 AM, Walter Tak <walter@...> wrote:
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.
_______________________________________________ Red5 mailing list Red5@... http://osflash.org/mailman/listinfo/red5_osflash.org |
| < Prev | 1 - 2 | Next > |
| Free embeddable forum powered by Nabble | Forum Help |