> Setting objects as null will make the object > eligible for GC That should read "may make". If there are other references to the object ( perhaps another reference to the exists in a Hashmap or Hashtable somewhere ), it will only be eligible once all references to the object have been cleared ( otherwise the object is "retained" ). ------------------------------------------- What do Bruce Eckel, Roedy Green and Professor Baldwin have in common? http://www.enterprisedeveloper.com/jcertify Free Trial download
--- Narasimhan Sethuraman <[EMAIL PROTECTED]> wrote: <HR> <html><div style='background-color:'><DIV></DIV> <DIV> <DIV> <P>You can't customize GC. It is JVM dependant. Setting objects as null will make the object eligible for GC</P></DIV> <P>Narasimhan</P> <P>H Shankaranarayanan wrote: </P> <DIV></DIV> <DIV></DIV> <P>>You can get the free memory available at that instant and display </P> <DIV></DIV> <P>>it. </P> <DIV></DIV> <P>>The heap size is not accessible . </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>>see Runtime.freeMemory() and Runtime.totalMemory() for this. </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>>Reg customization of a GC i have no idea. Cud some one throw light </P> <DIV></DIV> <P>>on </P> <DIV></DIV> <P>>that one? </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>How does one customize the GC? Or do you mean just allow the user to </P> <DIV></DIV> <P>make a selection and your code executes System.GC()? If the latter, </P> <DIV></DIV> <P>there should be no side effects as the GC runs at arbitrary times </P> <DIV></DIV> <P>anyway. Even calling System.GC() does nothing more than *suggest* that </P> <DIV></DIV> <P>garbage collection may take place. The VM is still free to schedule it </P> <DIV></DIV> <P>for whenever it chooses. </P> <DIV></DIV> <DIV></DIV> <P>Tomm </P> <DIV></DIV> <DIV></DIV> <P>> From: SAMINATHAN [<A href="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>] </P> <DIV></DIV> <P>> Sent: Thursday, June 20, 2002 10:05 AM </P> <DIV></DIV> <P>> To: JDJList </P> <DIV></DIV> <P>> Subject: [jdjlist] Heap Size of the JVM </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>> How do i find a heap size of my JVM.I need to display that in </P> <DIV></DIV> <P>>my </P> <DIV></DIV> <P>> application. </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>> And </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>> If i allow user to use Customized garbage collector , what side </P> <DIV></DIV> <P>> effects it will make? </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>> Thanks and Regards </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>> Saminathan. </P> <P>To change your membership options, refer to: </P> <DIV></DIV> <P>> http://www.sys-con.com/java/list.cfm </P> <DIV></DIV> <P>> </P> <DIV></DIV> <P>>To change your membership options, refer to: </P> <DIV></DIV> <P>>http://www.sys-con.com/java/list.cfm </P> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <P>To change your membership options, refer to: </P> <DIV></DIV> <P>http://www.sys-con.com/java/list.cfm </P> <DIV></DIV> <P><BR clear=all> </P></DIV></div><br clear=all><hr>Send and receive Hotmail on your mobile device: <a href='http://g.msn.com/1HM503401/38'>Click Here</a><br> To change your membership options, refer to: <BR> http://www.sys-con.com/java/list.cfm </html> __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com To change your membership options, refer to: http://www.sys-con.com/java/list.cfm
