[Red5] OUT of memory!

Giusanny giusanny at tiscali.it
Mon Oct 19 02:54:56 PDT 2009


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:10
0) [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(QuartzScheduli
ngServiceJob.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

 

 

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


More information about the Red5 mailing list