I've done some more profiling. Does anyone know what the "Coldfusion.runtime.NeoPageContext" class does? It seems awefully similar to a "Souped-Up HttpServletRequest" based on methods outlined here: http://www.bennadel.com/blog/758-ColdFusion-GetPageContext-Massive-Exploration.htm
Seems like everything in coldfusion (internal classes, like CustomTag, SettingTag, OutputTag, and CFVariablesScopeFilter, etc have a reference to it). ** What Worries Me** is that in my JRockit Memleak Detector I also found 2 of my CFC's referencing it. Do you think this is the leak, if my CFC's are being cached? To me it looks like a circular reference between the CFC and a NeoPageContext, and if my CFC is cached, I'm in trouble. Can someone verify? Here's the graph with the relevant objects: http://staging.onlysimchas.com/profiler2.jpg > 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281218 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

