[Red5] Java heap space OutOfMemoryError
Daniel Rossi
electroteque at gmail.com
Fri Oct 17 11:28:56 PDT 2008
OH sorry forgot to ask what is your memory arguments like and how much
memory do you have.
On 18/10/2008, at 1:28 AM, Sebastien Bicais wrote:
> Ok, that’s more a workaround. I can’t afford to reboot the server
> everyday, I’ve got users connected all day throughout.
>
> Should we log this issue against JIRA then ? I saw some tickets with
> the similar error, but they all have been closed.
>
>
> Cheers,
> seb
>
> From: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] On
> Behalf Of Daniel Rossi
> Sent: 17 October 2008 13:53
> To: red5 at osflash.org
> Subject: Re: [Red5] Java heap space OutOfMemoryError
>
> I have the servers rebooting daily at 12am to try and solve these
> problems, maybe it's still happening. Try and reboot the service at
> 12am each day and see how it goes ?
>
> On 17/10/2008, at 10:39 PM, Sebastien Bicais wrote:
>
>
> Hi there,
>
> here is the error I'm getting:
>
>
> Exception in thread "pool-5-thread-584" java.lang.OutOfMemoryError:
> Java heap space
> Exception in thread "pool-5-thread-1" java.lang.OutOfMemoryError:
> Java heap space
> 2008-10-14 11:13:27,814 [Thread-1] INFO
> org.red5.server.jmx.JMXAgent - Shutting down JMX agent
> java.lang.ClassCastException:
> org.springframework.beans.factory.CannotLoadBeanClassException
> cannot be cast to
> org.springframework.web.context.ConfigurableWebApplicationContext
> at
> org
> .red5
> .server.war.WarLoaderServlet.contextDestroyed(WarLoaderServlet.java:
> 219)
> at
> org
> .apache
> .catalina.core.StandardContext.listenerStop(StandardContext.java:3882)
> at
> org.apache.catalina.core.StandardContext.stop(StandardContext.java:
> 4516)
> at
> org
> .apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:
> 924)
> at
> org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:
> 1189)
> at
> org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1160)
> at
> org
> .apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
> 313)
> at
> org
> .apache
> .catalina
> .util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> at
> org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
> at
> org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
> at
> org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
> at
> org.apache.catalina.core.StandardService.stop(StandardService.java:
> 584)
> at
> org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
> at
> org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
> at
> org.apache.catalina.startup.Catalina.start(Catalina.java:603)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
>
> this is happening on a production server, after what seems to be a
> fairly heavy load (I don't know how many connections/stream I got
> though).
>
> Just before the error, I got this info:
> 2008-10-13 21:30:25,502 [pool-4-thread-4] INFO
> org.red5.server.jmx.JMXFactory - Object name:
> org
> .red5.server:type=RTMPMinaConnection,connectionType=persistent,host=www.mycompany.com
> ,port=1935,clientId=1985
>
>
> The clientID on the days I experienced the error seems quite high;
> I'm not sure it is meant to go that high.
>
> Our application is implemented pretty much like the oflaDemo. We are
> creating a connection for each stream and then closing them.
> Potentially, one user could
> send several streams (up to 3). But we are creating a connection for
> each of them. Is that alright ? Is the oflaDemo the best practice
> with opening/closing
> connections ?
>
> Thanks,
>
> seb
> _______________________________________________
> 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/20081018/21694c45/attachment-0001.html
More information about the Red5
mailing list