The reason for the large memory usage is not related to RTMP at all but to the implementation of FLVReader in Red5. We are using memory mapped IO for reading FLV files. So if the FLV file is big and there're many client requests, the memory will be all used up but that's virtual memory not physical one of course.

On 9/15/06, Tom Krcha <[EMAIL PROTECTED]> wrote:

Hi,

 

I am streaming 800 MB video using Red5. And it looks like Red5 is trying to put all the 800 MB into RAM.

 

Taskmgr -> java.exe 632 MB now … crazy huh? Running Red5 0.5 for windows

 

Because than it seems like unusable for bigger CDN.

 

Any ideas? … would be great if red5 gets only the data he needs to stream in an actual moment?

 

Week ago I saw some streaming server written in C (for FLV as well, using progressive download) … but what was great:

1)       when someone wants file, it gets enough for some proper time and it knows that when client is going to the end of that watched part he must get more.

2)       When another client connects to server, server has queue table and has mapped the files on hardisk … so he is doing job like delivering the files, which are most closer to actual position of reader on harddisk. So the harddisk reader is not jumping from one side to another side, but thinking about how to deliver all the streams in the most effective way

3)       When user pauses the stream, it stops delivering data to client … so it just doesnt waste the content delivering possibilities

4)       It can handle on P4 3,4 GHz, RAID, 4GBRAM about 4000 simultaneous clients

 

And I am just asking. What is the difference between delivering the streams by RTMP and progressive download.

Is RTMP better? Why?

 

And also if there is any possibility of tuning Red5 streaming capabilities, because, it's really cool server and I just want to give you some advices how to tune it, but for sure you already know these tricks.

 

Thanks for everything.

 

Tom


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





--
I cannot tell why this heart languishes in silence. It is for small needs it never asks, or knows or remembers.  -- Tagore

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

Reply via email to