Trouble with Random Long-Running request in ColdFusion 8
I've been experiencing some run-time weirdness with ColdFusion for the past year or so, and I've finally decided to post my observations and see if anyone else has been having similar troubles.
The trouble shows up on any number of scripts, but is most likely to appear with scripts that are called frequently. The screenshot I've included shows a Slow Request report from the ColdFusion Server Monitor. You can see that this request took 110 seconds to complete. The VERY strange part is that the runtime of the Application.cfc onRequest method (the outermost piece of code to run on any request) took only 468ms to complete. So what happened to the 109 seconds that were not spent executing my request? How can I prevent this from happening?
Also observe the Min/Max/Avg response times for the script. At the time of this screenshot, this script had been called 250 times. Multiplying the average response time (.505 seconds) by the request count (250) tells us that this script has occupied 126.25 seconds of server time. Removing this one long running request (250-1, 126.25-110.234) from the statistics, we find the script has an average running time of 0.064 seconds, which is a more reasonable run-time, considering the reported min response time of 0.015 seconds.
Eliminating these random long-running requests will do great things for the usability of the website, as well as free up server resources.

Misc Details
- ColdFusion Enterprise 8,0,1,195765
- Monitoring and Profiling Enabled
- Windows 2003
- Java 1.6.0_04
Summary
Scripts will randomly take MUCH longer then they usually do.There seems to be a massive discrepancy between the Response Time and the Time Taken by the onRequest method.
Why is this happening, and what can be done about it?
