Status/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): KlaasJan Winkel / KlaasJan Winkel (elklaaso)
Created: 07/12/2012
Components: Performance
Versions: 9.0.1
Failure Type: Memory Leak
Found In Build/Fixed In Build: 9.0.1 /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Windows 7
Vote Count: 2
Duplicate ID:	CF-3119991
Problem Description:
Created cfc's within one request will NOT be garbage collected even if the coldfusion variable holding it is set to empty string or set to a new cfc/value.
This is unacceptable for batch processing large amount of data using cfc's. This worked fine with coldfusion 8 (speed doesnt matter much for me, just that the code is maintainable, hence cfc's).
Steps to Reproduce:
This piece of code:
 
                <cfscript>
                for (j = 1 ; j LTE 500000 ; j = (j + 1))
                {
                        dummyc = createObject("component","Dummy");
                        dummyc.dummyf();
                }
                </cfscript>
 
that creates objects like this one:
 
<cfcomponent name="Dummy" output="false">
        <cffunction name="dummyf" access="public" output="false" hint="" returnType="void">
        </cffunction>
</cfcomponent>
Actual Result:
Will use about 2GB of memory
Expected Result:
While in coldfusion 8 and reportedly also in coldfusion 10, uses only about 600mb
Any Workarounds:
Tried a lot, but found nothing.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID:	3286878
External Customer Info:
External Company:  
External Customer Name: elklaaso
External Customer Email:  
External Test Config: My Hardware and Environment details:
Coldfusion update 2, development mode (jrun web server), sandy bridge cpu, 10GB allocated to coldfusion server.Attachments:
- July 13, 2012 00:00:00: 1_cf9_memorygraph_500000iterations.JPG
- July 13, 2012 00:00:00: 2_cf8_memorygraph_500000iterations.JPG
- July 13, 2012 00:00:00: 3_cf9_heapdump.JPG
Comments: