[Red5] Problem with GC and heap space
Walter Tak
walter at waltertak.com
Wed Sep 16 06:39:30 PDT 2009
Check out the memory requirements of your own application using [jconsole] and then set the proper heap space accordingly.
If you have custom code make sure you don't made any memory-leaks yourself (can happen). If the heap space won't free up with normal GC's even when the application isn't in use anymore fallback to an automatic restart scenario where you'd restart your app at set times. That isn't elegant but it will prevent the need to fix every memory leak in your own app or in Red5 itself (and some are there and might only be found after a year or so).
W.
----- Original Message -----
From: Lara Giovannozzi
To: red5 at osflash.org
Sent: Wednesday, 16 September 2009 10:52
Subject: [Red5] Problem with GC and heap space
Hi,
i have a red5 server with a webtv application that stream continuosly many flv file.
Very often i view in log
[ERROR] [NioBlockingSelector.BlockPoller-1] org.apache.tomcat.util.net.NioBlockingSelector -
java.lang.OutOfMemoryError: GC overhead limit exceeded
[ERROR] [http-82.143.15.171-80-exec-2] org.apache.catalina.core.ContainerBase.[red5RTMPTEngine].[xx.xx.xx.xx].[/].[rtmpt] - Servlet.service() for servlet rtmpt threw exception
java.lang.OutOfMemoryError: Java heap space
and i must restart the red5 server. i have add "-Xms512M -Xmx1024M" at the start script for red5 but it can be a problem of my application? The server have in memory all the file without clean up the memory?
Thank for any help
--
Laragio
------------------------------------------------------------------------------
_______________________________________________
Red5 mailing list
Red5 at osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090916/6e24cf21/attachment.html>
More information about the Red5
mailing list