Issue

In ColdFusion 8.0.1, a deadlock can occur when multiple threads simultaneously try to lock the template cache to load a CFC class. When this type of deadlock occurs, several consecutive thread dumps list multiple threads in a WAITING state. See Additional information, below, for an example stack trace a thread encountering a deadlock.

Solution

Follow the instructions below to apply the fix to ColdFusion 8.0.1. Don't apply these fixes to any beta or prerelease version of ColdFusion.

  1. Download hf801-76563.zip and extract hf801-76563.jar.
  2. Open the ColdFusion Administrator and select the System Information page by clicking the "i" icon in the upper-right corner.
  3. In the Update File box, enter the full path to the extracted file hf801-76563.jar. You can also use the Browse button to browse to the file and select it. Click Submit. 
  4. Repeat steps 2 and 3 for each of the instances.
  5. Restart all the ColdFusion instances. 

 Additional information

Here is an example stack trace of a thread that is encountering a deadlock and would be listed in multiple consecutive thread dumps. This type of stack trace can occur normally and doesn't necessarily indicate an issue with ColdFusion.

        "web-xx" prio=6 tid=0x0002f9c6800 nid=0x12e8 in Object.wait() [0x361bf000..0x361bfa14]

            java.lang.Thread.State: WAITING (on object monitor)

                at java.lang.Object.wait(Native Method)

                at java.lang.Object.wait(Object.java:485)

                at coldfusion.util.AbstractCache.fetch(AbstractCache.java:46)

                - locked <0x05c7fc90> (a coldfusion.util.AbstractCache$Lock)

                at coldfusion.util.SoftCache.get_statsOff(SoftCache.java:133)

                at coldfusion.util.SoftCache.get(SoftCache.java:81)

                at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:584)

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

                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.CachingFilter.invoke(CachingFilter.java:53)

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

                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:286)

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

                at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)

                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) 

 

 

 

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy