I've written a MVC-style CF app with alot of CFC's. I've upgraded to 7.02, to get the latest fixes re: memory leak.
I am using OpenSymphony's oscache to cache CFC's and the oscache "manager" object is stored in the application scope. I have other cfc's also storing things in the application scope. I've tried varscoper, and made sure all member methods in my cfc's are properly var'd. I've added the "hack" workaround as suggested on a blog, to do a structClear(variables) in the OnRequestEnd.cfm page. Still running out of memory in a 12-24 hour period, despite giving it a generous 1gb of ram. (it doesnt need even close to that much, ...) My JVM was sun 1.4.2_14 I then went on a QA machine, switched the JVM to JRocket 1.5.0_06 and fired up memleak. What I'm finding is that when my cache (oscache, a java library) caches a copy of my CFC, the actual object being passed to the cache is an instance of "coldfusion.runtime.TemplateProxy". That in turn points to my CFC instances. That's all fine, I presume. What bothers me, is what i see next. MY CFC instance (which is in the cache at this point) is pointing to a "coldfusion.runtime.NeoPageContext". That has me worried, since it would seem that I'm basically not letting go to "PageContext"s which I presume are the environment for running a request. The "NeoPageContext" points to a "coldfusion.runtime.LocalScope" which points to a HashMap, which points to Variables, which points back to my CFC! That seem to imply i have a circular reference of some sort. Here's a copy of the object map. The "widest" portion is the fully expanded trace of what I believe to be the source (or one of them) of my issues. http://staging.onlysimchas.com/profiler.jpg Is this something to worry about, or am I on the wrong path? Is there something I ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281118 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

