Out of Memory

0 views
Skip to first unread message

Dale Fraser

unread,
May 18, 2008, 10:09:43 PM5/18/08
to cfau...@googlegroups.com

We are getting these errors on a particular page. Looking at the code there is nothing wrong that we can see other than the fact that it is manipulating a large amount of data.

 

Any ideas on what we can do to eliminate these issues.

500

ROOT CAUSE:

coldfusion.runtime.EventHandlerException: Event handler exception.

        at coldfusion.runtime.AppEventInvoker.onRequest(AppEventInvoker.java:251)

        at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:269)

        at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)

        at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)

        at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)

        at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)

        at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)

        at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)

        at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)

        at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)

        at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)

        at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126)

        at coldfusion.CfmServlet.service(CfmServlet.java:175)

        at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)

        at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)

        at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)

        at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)

        at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)

        at jrun.servlet.FilterChain.service(FilterChain.java:101)

        at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)

        at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)

        at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:284)

        at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)

        at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)

        at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)

        at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)

        at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)

        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

Caused by: java.lang.OutOfMemoryError: Java heap space

 

javax.servlet.ServletException: ROOT CAUSE:

coldfusion.runtime.EventHandlerException: Event handler exception.

        at coldfusion.runtime.AppEventInvoker.onRequest(AppEventInvoker.java:251)

        at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:269)

        at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)

        at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)

        at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)

        at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)

        at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)

        at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)

        at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)

        at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)

        at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)

        at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126)

        at coldfusion.CfmServlet.service(CfmServlet.java:175)

        at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)

        at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)

        at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)

        at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)

        at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)

        at jrun.servlet.FilterChain.service(FilterChain.java:101)

        at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)

        at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)

        at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:284)

        at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)

        at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)

        at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)

        at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)

        at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)

        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

Caused by: java.lang.OutOfMemoryError: Java heap space

 

        at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:70)

        at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)

        at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)

        at jrun.servlet.FilterChain.service(FilterChain.java:101)

        at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)

        at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)

        at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:284)

        at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)

        at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)

        at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)

        at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)

        at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)

        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

 

500

ROOT CAUSE:

java.lang.OutOfMemoryError: GC overhead limit exceeded

 

javax.servlet.ServletException: ROOT CAUSE:

java.lang.OutOfMemoryError: GC overhead limit exceeded

 

        at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:70)

        at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)

        at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)

        at jrun.servlet.FilterChain.service(FilterChain.java:101)

        at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)

        at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)

        at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:284)

        at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)

        at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)

        at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)

        at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)

        at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)

        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

 

 

 

 

Regards

Dale Fraser

http://learncf.com

http://flexcf.com

 

 

Mark Mandel

unread,
May 18, 2008, 10:12:42 PM5/18/08
to cfau...@googlegroups.com
What is the memory state of your server when this happens?

Looks like you may just have some operation on the page that is using up all the server's memory, and then dying on you.

Mark
--
E: mark....@gmail.com
W: www.compoundtheory.com

Kai Koenig

unread,
May 18, 2008, 10:16:56 PM5/18/08
to cfau...@googlegroups.com
Dale,

something on your page seems to go crazy and suck all the remaining
VM memory.

Cheers
Kai

>(ThreadPool.java:266)
>        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
>Caused by: java.lang.OutOfMemoryError: Java heap space
> 
>        at coldfusion.monitor.event.MonitoringServletFilter.doFilter
>(MonitoringServletFilter.java:70)
>        at coldfusion.bootstrap.BootstrapFilter.doFilter

>(BootstrapFilter.java:46)
>        at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>        at jrun.servlet.FilterChain.service(FilterChain.java:101)
>        at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
>        at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>        at jrun.servlet.JRunRequestDispatcher.invoke
>(JRunRequestDispatcher.java:284)
>        at jrun.servlet.ServletEngineService.dispatch
>(ServletEngineService.java:543)
>        at jrun.servlet.jrpp.JRunProxyService.invokeRunnable
>(JRunProxyService.java:203)
>        at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable
>(ThreadPool.java:320)
>        at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable
>(ThreadPool.java:428)
>        at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable

>(ThreadPool.java:266)
>        at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
> 
>500
>ROOT CAUSE:
>java.lang.OutOfMemoryError: GC overhead limit exceeded
> 
>javax.servlet.ServletException: ROOT CAUSE:
>java.lang.OutOfMemoryError: GC overhead limit exceeded
> 
>        at coldfusion.monitor.event.MonitoringServletFilter.doFilter
>(MonitoringServletFilter.java:70)
>        at coldfusion.bootstrap.BootstrapFilter.doFilter

>(BootstrapFilter.java:46)
>        at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
>        at jrun.servlet.FilterChain.service(FilterChain.java:101)
>        at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
>        at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>        at jrun.servlet.JRunRequestDispatcher.invoke
>(JRunRequestDispatcher.java:284)
>        at jrun.servlet.ServletEngineService.dispatch
>(ServletEngineService.java:543)
>        at jrun.servlet.jrpp.JRunProxyService.invokeRunnable
>(JRunProxyService.java:203)
>        at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable
>(ThreadPool.java:320)
>        at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable
>(ThreadPool.java:428)
>        at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable

Dale Fraser

unread,
May 18, 2008, 11:15:34 PM5/18/08
to cfau...@googlegroups.com
Yeah,

I've been told that the code is ok, but I think I'll need to look through it
myself.

Joel Cass

unread,
May 19, 2008, 7:22:50 PM5/19/08
to cfau...@googlegroups.com
First thing that comes to mind is Sessions.

If you are placing a lot of data in the session scope, your server can
be brought down by all kinds of traffic especially spiders.

And then there's excessive caching. If you are caching on a per-user
basis or not caching effectively (e.g. storage bugs, whitespace) you can
get this.

Depends on your application. Perhaps it is loading some huge data
structure into memory but it would have to be excessively huge to bring
down the server.

My two cents

Zac Spitzer

unread,
May 19, 2008, 8:24:35 PM5/19/08
to cfau...@googlegroups.com
how much memory do you have allocated to the cf jvm?

--
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168

Dale Fraser

unread,
May 19, 2008, 9:21:18 PM5/19/08
to cfau...@googlegroups.com
1024 mb

Zac Spitzer

unread,
May 19, 2008, 9:28:25 PM5/19/08
to cfau...@googlegroups.com
i have seen this with pages with lots of queries...

adding debug="no" to the those query helped a lot

z

Reply all
Reply to author
Forward
0 new messages