[Red5] R: OUT of memory!
Giusanny
giusanny at tiscali.it
Mon Oct 19 06:03:00 PDT 2009
Ok thanks, but how works red5-highperf.sh?
It just set the JVM garbage collector?
So if I want to use it I have just to modify red5-highperf.sh like "-Xms256M
-Xmx512M -XX:MaxPermSize=128m ..."
and then run red5-highperf.sh and than red5.sh?
It's right?
P.S. I see that if I start a live stream and then let 10 client connect in
almost the same time, the server crashes (well doesn't crash but doesn't
allow any other connection even http connections)!
But if I let the client connect one per time it works for 150 and more
client...could be a problem with the queue?
Now I have rtmp.event_threads_queue=0 in the re5.properties.
Any ideas?
Thanks a lot!
Giuseppe
-----Messaggio originale-----
Da: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] Per conto di
Hugo Flambó
Inviato: lunedì 19 ottobre 2009 14.24
A: red5 at osflash.org
Oggetto: Re: [Red5] OUT of memory!
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 didnt 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!!!
> (Im scared about it :D being a java developer!)
>
> I think I could recreate the problem doing about 30 connection almost
> in the same time
>
>
>
> Im 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.j
> ava: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(QuartzSc
> hedulingServiceJob.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.ja
> va: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
>
>
_______________________________________________
Red5 mailing list
Red5 at osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org
More information about the Red5
mailing list