[Red5] Minimize CPU usage

Dan Daemon dan.daemon at gmail.com
Thu Aug 27 02:58:11 PDT 2009


As I can see, "Heap Memory Usage" grows up to 1GB and then decreases  
to 0.
But at same time "Memory Pool "PS Survivor Space"" grows up to 99% and
don't decrease... why it can be so? should it work so?

On Aug 27, 2009, at 11:21 AM, Naicu Octavian wrote:

> I think you have to watch the heap memory usage graph and tune the  
> settings accordingly!
>
>
> On Thu, Aug 27, 2009 at 8:16 AM, Dan Daemon <dan.daemon at gmail.com>  
> wrote:
> Hello Walter,
>
> Thank you very much for your help!
> I just connected to the remote JMX as you described.
>
> What information do I need to see?
> It seems that all things are fine...
>
> Thanks,
> Dan
>
>
>
> On Aug 25, 2009, at 4:27 PM, Walter Tak wrote:
>
> Have a look at http://jira.red5.org/confluence/display/docs/Chapter+17.+Management
>
> The quick version (no SSL, but password protected so it's safe)
>
> 0. open the firewall on your server(s) so you can connect from your  
> desktop to port 9999 on your server
> 1. edit [conf/red5.properties] and make sure JMX is bound to a  
> public interface/nic/IP instead of 127.0.0.1 (e.g.  
> jmx.rmi.host=0.0.0.0 or jmx.rmi.host=10.20.30.40
> 2. change password in [conf/password.properties]
> 3. install java on your desktop
> 4. start jconsole (start -> run -> jconsole or from commandline)
> 5. pick 'new connections'
> 6. select 'remote process'
> 7. enter this as the connect string " service:jmx:rmi:// 
> doesnotmatter:12345/jndi/rmi://your.ip:9999/red5 " (yes it looks  
> weird, change "your.ip" into your IP or hostname, change 9999 if you  
> changed the port JMX listens on) , leave "doesnotmatter" and "12345"  
> there since it isn't used
> 8. enter username 'red5user' and the new password
> 9. jconsole will show a lot of nice graphs after a few seconds.
>
> Have fun profiling.
>
> W.
>
> ----- Original Message ----- From: "Dan Daemon" <dan.daemon at gmail.com>
> To: <red5 at osflash.org>
> Sent: Tuesday, 25 August 2009 14:42
> Subject: Re: [Red5] Minimize CPU usage
>
>
> Java settings are:
> ---
> -Xrs -Xms2048M -Xmx2048M -Xmn1024M -Xss1024K -XX:PermSize=256M -  
> XX:MaxPermSize=512M -XX:NewSize=768M -XX:SurvivorRatio=32 -  
> XX:MinHeapFreeRatio=20 -XX:+AggressiveHeap -XX:-UseGCOverheadLimit -  
> Dsun.rmi.dgc.client.gcInterval=990000 -  
> Dsun.rmi.dgc.server.gcInterval=990000 - 
> Djava.net.preferIPv4Stack=true - Xverify:none -  
> Djava 
> .nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider
> ---
>
> I turned off GC utilization, -XX:-UseGCOverheadLimit
>
> The origin server Xenon with 4 cores, 6Gig RAM...
>
> Thank you for help.
>
>
> JConsole does not work for me by unknown reason. Still trying to  
> configure.
>
> On Aug 25, 2009, at 2:34 PM, Walter Tak wrote:
>
> I'd connect with jconsole to your boxes and see if Java isn't busy   
> with the GC all the time. If so you might want to tune the   
> memorysettings a bit.
>
> ----- Original Message ----- From: "Dan Daemon" <dan.daemon at gmail.com>
> To: <red5 at osflash.org>
> Sent: Tuesday, 25 August 2009 04:16
> Subject: [Red5] Minimize CPU usage
>
>
> Hello guys,
>
> I have 1 origin server and 5 nodes and about 1100 concurrent
> RTMP connections with live audio/video streams in different
> rooms.
>
> Origin server CPU usage is about 50%.
>
> Is it possible to minimize CPU usage with Java or
> RED5 tweaks?
>
> Thanks,
> Dan
>
> _______________________________________________
> 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
>
>
> _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090827/ffecd700/attachment.html>


More information about the Red5 mailing list