Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Michael Sprague / Michael Sprague (Michael Sprague)
Created: 05/25/2012
Components: Performance
Versions: 10.0
Failure Type: Performance Issue
Found In Build/Fixed In Build: Final / 282570
Priority/Frequency: Major / All users will encounter
Locale/System: English / Win 2008 Server R2 64 bit
Vote Count: 0
Problem Description:
We have two identical versions of our application running on the same server - one in CF9 and one in CF10. We noticed that CF10 is signficantly slower. To be more specific it is more that 10x slower than CF9. So, we started experimenting with CFTIMER to narrow down the issue. Here's what we discovered...
<cftimer>
<cfset expandpath('/') />
</cftimer>
On ColdFusion 9, this runs in 10-20ms on average. In ColdFusion 10, it runs in 200-250ms on average.
We use expandpath quite a bit in our applications. So, pages that load in less than 200ms on CF9 are now loading in 10000+ milliseconds on CF10.
It doesn't matter if we change it to this...
<cftimer>
<cfset expandpath('/some/folder/path') />
</cftimer>
The result is still the same.
Note that our application does run from a UNC path because it is load balanced across multiple servers. So, the expand path will resolve to \\server\folder\file.cfm. As you can see, this works just fine with CF9 but CF10 can't seem to handle it.
Steps to Reproduce:
Set up a site with a UNC path as the root. Create a simple CFM file with an expandPath('/') in it. Look at the time taken. We are on Windows 2008 with IIS.
Actual Result:
200ms+
Expected Result:
10-20ms
Any Workarounds: If you put a mapping of "/" to your root directory in the cf admin it works MUCH faster. But by doing this, you can't have multiple sites running off one CF instance.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3198902
External Customer Info:
External Company:
External Customer Name: tSpark
External Customer Email:
External Test Config: Windows 2008
IIS 7.5
ColdFusion 10
Attachments:
Comments: