[Red5] Memory
AMP Admin
admin at ampprod.com
Sat Aug 15 06:49:57 PDT 2009
Oh neat.
#!/bin/bash
if [ -z "$RED5_HOME" ]; then export RED5_HOME=.; fi
# Previous option set
export JAVA_OPTS="-Xrs -Xms512M -Xmx1024M -Xss128K -XX:NewSize=256m
-XX:SurvivorRatio=16 -XX:MinHeapFreeRatio=20 -XX:+AggressiveHeap
-XX:+ExplicitGCInvokesConcurrent -XX:+UseConcMarkSweepGC
-Dsun.rmi.dgc.client.gcInterval=990000
-Dsun.rmi.dgc.server.gcInterval=990000 -Djava.net.preferIPv4Stack=true
-Xverify:none"
# start Red5
echo "Setting Hi Performance Options"
exec $RED5_HOME/red5.sh >> $RED5_HOME/log/jvm.stdout 2>&1 &
From: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] On Behalf
Of Daniel Rossi
Sent: Saturday, August 15, 2009 8:37 AM
To: red5 at osflash.org
Subject: Re: [Red5] Memory
What does your rc script look like ? Check whats its in the red5-hiperf.sh
On 15/08/2009, at 11:23 PM, AMP Admin wrote:
Thanks for the reply, Dan.
Yea, see below. Java is using 1181MB.
VIRT RES SHR S %CPU %MEM TIME+
COMMAND
1181m 74m 8376 S 0.0 1.8
0:05.42 java
I tried exporting that but now I get the following and red5 won't start.
I'm guessing that should be in a file or something? Jeez I suck at this lol
/etc/init.d/red5 start
Starting Red5 Service Starting Red5
Conflicting collector combinations in option list; please refer to the
release notes for the combinations allowed
Could not create the Java virtual machine.
From: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] On Behalf
Of Daniel Rossi
Sent: Saturday, August 15, 2009 12:59 AM
To: red5 at osflash.org
Subject: Re: [Red5] Memory
Im still not entirely an expert in memory jvmargs. But maybe there should be
something in the docs about it.
Try the suggested arguments here and replace it with minimum and upper limit
memory you want to allocate to java. So in your processes you can see it
using 1GB of memory ?
export JAVA_OPTS="-Xrs -Xms512M -Xmx1024M -Xss128K -XX:NewSize=256m
-XX:SurvivorRatio=16 -XX:MinHeapFreeRatio=20 -XX:+AggressiveHeap
-XX:+ExplicitGCInvokesConcurrent -XX:+UseConcMarkSweepGC
-Dsun.rmi.dgc.client.gcInterval=990000
-Dsun.rmi.dgc.server.gcInterval=990000 -Djava.net.preferIPv4Stack=true
-Xverify:none"
minimum - -Xms512M
maximum - -Xmx1024M
On 15/08/2009, at 3:21 PM, AMP Admin wrote:
Is there a good way to optimize the red5 in regards to memory?
It's very new so not too many people are viewing it and it's using over a
gig of ram. Is that normal?
_______________________________________________
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/20090815/aa9e2b0d/attachment-0001.html>
More information about the Red5
mailing list