Yes, the underlying assumption is that all references to the object would be removed beforehand.
-----Original Message----- From: Pete Freitag [mailto:[EMAIL PROTECTED]] Sent: November 26, 2001 12:13 AM To: CF-Talk Subject: RE: Java and Coldfusion 4.5 using memory The garbage collector won't destroy the object if there is still a reference to it, even when you explicitly ask it to run the garbage collector ( via System.gc() or Runtime.gc() ). +++++++++++++++++++++++++++++++++++++++++++++ Pete Freitag ([EMAIL PROTECTED]) CTO, CFDEV.COM ColdFusion Developer Resources http://www.cfdev.com/ -----Original Message----- From: Kwang Suh [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 25, 2001 9:57 PM To: CF-Talk Subject: Re: Java and Coldfusion 4.5 using memory You can ask the JVM nicely to perhaps consider doing some garbage collection, which might maybe sorta destroy the object. There's no guaratees though :) ----- Original Message ----- From: "Kinley Pon" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Sunday, November 25, 2001 9:47 AM Subject: Java and Coldfusion 4.5 using memory > A question for those java - Coldfusion experts: > > When an object is instantiated with the statement > > <cfset pointToThisObject=objectName.methodName()>, > > the 'pointToThisObject' contains only the pointer address to the > instantiated object in memory. > > It appears that Coldfusion is not releasing the memory space and leaving a > "vague" reference to the java object. Being that this may be the case, the > memory is strinking which is causing a 'java.lang.OutOfMemoryError' to > occur. The java memory space is strinking when multiple users (client > workstations) are using the application. > > Is there a way to destroy or release this memory space? I have tried <cfset > pointToThisObject = ""> but it only clears the pointer but not the memory > space. > > Also, would you know how to determine what the memory usage would be within > Coldfusion during the before and after an object is instantiated? > > Please help...I would hope that Coldfusion would be able to handle its own > garbage collection when referencing java objects. > > talk soon - Kinley > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists