[Red5] OUT of memory!

Hugo Flambó hflambo at gmail.com
Mon Oct 19 05:23:53 PDT 2009


don't know if solves your prob but maybe you can set JVM garbage
collector options like:

-Xms256M -Xmx512M -XX:MaxPermSize=128m

On Mon, Oct 19, 2009 at 12:10 PM, Walter Tak <walter at waltertak.com> wrote:
> There have been excellent threads about this subject a few weeks and months
> ago. Most important thing ; get jconsole working and start monitoring your
> application in real time so you can actually see it's memory usage on
> minute-by-minute basis and then adjust the commandline options accordingly.
> Perhaps your java-app is only using 1 Gb of memory and won't ever touch the
> remaining 2.
>
> Unfortunately Java , by default , used very fixed amounts of memory (max
> heap space) so you need to tweak that manually. It's not really a Red5
> problem. A problem of Red5 IS that it's using quite some resources per
> VOD-connection. After a while that will be improved but so far your best bet
> is to finetune it manually and make sure you don't do odd (memory-related)
> things if you have a custom webapplication.
>
> You can check the archives at
> http://osflash.org/pipermail/red5_osflash.org/ and use Google for easiers
> searching like:
>
> "site:osflash.org/pipermail/red5_osflash.org/ heap space" ; this will search
> the archives in a convenient way for keywords "heap space".
>
> Walter
>
> ----- Original Message -----
> From: Giusanny
> To: red5 at osflash.org
> Sent: Monday, 19 October 2009 11:54
> Subject: [Red5] OUT of memory!
>
> Hi,
>
> yesterday I was streaming live with 150 connections at 256kbps everything ok
> till a problem that blocked my server (after only 30 minutes)!
>
> I didn’t have time to get the cause and I rebooted…I continued for 1,5 hour
> with other 150 connections without problems…
>
>
>
> Today I was trying to recreate the problem and I was a JAVA OUT OF MEMORY!!!
> (I’m scared about it :D being a java developer!)
>
> I think I could recreate the problem doing about 30 connection almost in the
> same time…
>
>
>
> I’m not using red5-highperf.sh but just red5.sh? Shoud I use highperf? I
> have a 2GB ram dedicated server how could be the beast way to use the ram?
> And how can I use (the command line options) the red5-highperf.sh?
>
>
>
> Thanks a lot
>
> Giuseppe
>
>
>
> P.s. I got the logs…
>
> 2009-10-19 11:13:25,612 [Red5_Scheduler_Worker-4] ERROR
> org.quartz.core.JobRunShell - Job DEFAULT.ScheduledJob_2386 threw an
> unhandled Exception:
>
> java.lang.OutOfMemoryError: Java heap space
>
>                 at java.util.Arrays.copyOf(Arrays.java:2882) [na:1.6.0_16]
>
>                 at
> java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
> [na:1.6.0_16]
>
>                 at
> java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
> [na:1.6.0_16]
>
>                 at java.lang.StringBuilder.append(StringBuilder.java:119)
> [na:1.6.0_16]
>
>                 at java.lang.Object.toString(Object.java:219) [na:1.6.0_16]
>
>                 at
> org.red5.server.scheduling.QuartzSchedulingServiceJob.execute(QuartzSchedulingServiceJob.java:61)
> [red5.jar:na]
>
>                 at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
> [quartz-1.6.5.jar:1.6.5]
>
>                 at
> org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
> [quartz-1.6.5.jar:1.6.5]
>
> 2009-10-19 11:13:26,806 [NioProcessor-1] ERROR o.r.s.m.InMemoryPushPushPipe
> - exception when pushing message to consumer
>
> java.lang.OutOfMemoryError: Java heap space
>
>
>
>
>
> ________________________________
>
> _______________________________________________
> 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