Hm. I used this without any real results: <cfset runtime = CreateObject("java","java.lang.Runtime").getRuntime()> <cfset runtime.gc()>
I'll have to try java.lang.System once my comic bot is done it's nights work. Don't want to interrupt a 'real' operation for an experiment that'll just distract me from what I'm supposed to be doing. :) -- Michael Dinowitz On Wed, Mar 10, 2010 at 12:48 AM, Brad Wood <b...@bradwood.com> wrote: > >> So the question now is if GC can be called programatically after all >> references to a large 'object' is removed during a single request. > > Yes. > > <cfset obj = CreateObject("java", "java.lang.System")> > <cfset result = obj.gc()> > > Careful though-- Garbage Collection can be an expensive operation. Also, GC > can be a little complicated. Just because you run the code above may not > guaruntee everything you expect to be collected will be. > > ~Brad > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331529 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm