[Red5] About the Fix of FLV and FLVReader in regards with OutOfMemoryError when playing large FLVs
Rodrigo Ordonez Licona
rodrigo at xnet.com.mx
Mon Nov 20 14:24:28 EST 2006
Hi Bill
We do a forced Restart with cron (at 4am) to avoid the memory use building
up
, We have been running a Live stream for over 2 months,
Ocassional server Hangs, Mostly network related.
Last two weeks we did not have a single server hang.
Regards
Rodrigo O
Xnet
-----Original Message-----
From: Red5-bounces at osflash.org [mailto:Red5-bounces at osflash.org] On Behalf
Of Interalab Sales
Sent: Lunes, 20 de Noviembre de 2006 10:07 a.m.
To: Red5 at osflash.org
Subject: Re: [Red5] About the Fix of FLV and FLVReader in regards with
OutOfMemoryError when playing large FLVs
Finally died. 3006 plays; approx 39 hours. It happened when the demand was
peaking - delivering 5 or 10 at a time.
Server stats when it stopped delivering files:
>>>>>
top - 11:55:56 up 1 day, 14:34, 1 user, load average: 3.25, 3.41, 3.01
Tasks: 70 total, 2 running, 68 sleeping, 0 stopped, 0 zombie
Cpu(s): 46.3% us, 6.7% sy, 0.0% ni, 46.7% id, 0.0% wa, 0.0% hi, 0.3% si
Mem: 1477380k total, 531548k used, 945832k free, 40456k buffers
Swap: 2031608k total, 0k used, 2031608k free, 193828k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+
COMMAND
1918 root 25 0 1071m 320m 121m S 52.6 22.2 240:14.25 java
<<<<<<
CPU was bouncing between 50% and 95% capacity.
Any ideas?
Bill
Interalab Sales wrote:
> So far, we have not had any failures. We're up to 2,820 plays and 37
> hours.
>
> Interalab Sales wrote:
>
>> I've just updated our install of 0.6 to revision 1557.
>>
>> The last time we tried this, the server would stop delivering the videos
>> after about 200 page views and rtmpt wasn't working. Preliminary tests
>> tonight show that rtmpt and rtmp are both working, although we can't
>> test whether it automatically uses rtmpt if rtmp is blocked - any
>> suggestions are welcome on how to do that.
>>
>> Server Configuration:
>>
>> 512 Meg Heap specified in the red5.sh script Jetty AMD 64 3000+
>> processor Fedora Core 4
>> 1.5 G RAM installed
>> 100 Mbit NIC
>> Internet connection: DS3
>> JDK 1.5_09
>>
>>
>>
>>
>> Steven Gong wrote:
>>
>>
>>> Hi Paul,
>>> I have just committed some codes to fix the OutOfMemoryError. The
>>> related revision numbers are 1555, 1556 and 1557.
>>>
>>> The OutOfMemoryError is mainly due to the buffer in FLVReader so I
>>> added a new static oroperty 'maxBufferSize' to constrain the buffer
>>> size and also added a way to disable the buffer if none of 'auto',
>>> 'direct' and 'heap'
>>> buffer type is configured. The property can also be configured in
>>> red5-common.xml.
>>>
>>> Another improvement is to let ICacheStore create ICacheable
>>> instances so that in the case of NoCacheImpl, no instances will be
>>> created thus we won't create byte array in this case.
>>>
>>> Could you please have a review? Thanks. :-)
>>>
>>> As the OutOfMemoryError bug gives rise to many complaints of our
>>> users, I also cc this mail to red5 list for notification purpose.
>>>
>>> --------------------------------------------------------------------
>>> ----
>>>
>>> _______________________________________________
>>> Red5 mailing list
>>> Red5 at osflash.org
>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>
>>>
>>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
_______________________________________________
Red5 mailing list
Red5 at osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org
More information about the Red5
mailing list