[Red5devs] [Red5] One Critical Memory Leak Issue Fixed on Trunk (r2645)

Steven Gong steven.gong at gmail.com
Thu Feb 14 07:47:07 PST 2008


On Thu, Feb 14, 2008 at 12:06 PM, Dan Rossi <spam at electroteque.org> wrote:

> Thanks steve, im pretty sure there are more issues with Mina as ive
> researched a little about mina and come across threads suggesting other IO
> frameworks :)
>
Do you have the link to the threads? I would be very interested in those
comments. :-)

>
> What does this resolve though, so i can test and know what i'm looking
> for. I've never ran into memory been used up quickly however it could use up
> to 1G of ram at some stage or another after the server has been on for a
> while.
>
The leak can be reproduced under a heavy load.

>
> On 14/02/2008, at 12:40 PM, Steven Gong wrote:
>
> Hi all,
> I just checked in the fix for a critical memory leak bug which is caused
> by MINA ExecutorFilter. MINA will cache the event packets into an internal
> buffer before handing them off to the working threads in ExecutorFilter.
> When the Executor can't provide enough working threads for the event packet,
> an exception will be thrown by default and the IoSession the generates the
> event packet will be marked as "working" which prevents other threads to
> handle on it. Thus more event packets will be added in the internal buffer
> but no thread will remove and handle them -- memory leaks.
>
> To avoid this, I set the CallerRunsPolicy to the executor. As this is a
> critical bug, I also CCed to the user list for information.
>
> --
> Best Regards
> Steven Gong
>
> InfraRed5 Red5 Consultant: http://www.infrared5.com, steven at infrared5.com
>
> Red5 Developer: http://osflash.org/red5,
> http://jira.red5.org/confluence/display/~steven/Home<http://jira.red5.org/confluence/display/%7Esteven/Home>
>
> Javaflash Project Founder and Maintainer: http://osflash.org/javaflash
>
> Modesty is an overrated quality in men of no great accomplishment.  --
> Ricky Jay _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
> _______________________________________________
> Red5devs mailing list
> Red5devs at osflash.org
> http://osflash.org/mailman/listinfo/red5devs_osflash.org
>
>


-- 
Best Regards
Steven Gong

InfraRed5 Red5 Consultant: http://www.infrared5.com, steven at infrared5.com

Red5 Developer: http://osflash.org/red5,
http://jira.red5.org/confluence/display/~steven/Home

Javaflash Project Founder and Maintainer: http://osflash.org/javaflash

Modesty is an overrated quality in men of no great accomplishment. -- Ricky
Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5devs_osflash.org/attachments/20080214/8e483ac5/attachment.html 


More information about the Red5devs mailing list