You can't customize GC. It is JVM dependant. Setting objects as null will make the object eligible for GC
Narasimhan
H Shankaranarayanan wrote:
>You can get the free memory available at that instant and display
>it.
>The heap size is not accessible .
>
>see Runtime.freeMemory() and Runtime.totalMemory() for this.
>
>
>
>Reg customization of a GC i have no idea. Cud some one throw light
>on
>that one?
>
How does one customize the GC? Or do you mean just allow the user to
make a selection and your code executes System.GC()? If the latter,
there should be no side effects as the GC runs at arbitrary times
anyway. Even calling System.GC() does nothing more than *suggest* that
garbage collection may take place. The VM is still free to schedule it
for whenever it chooses.
Tomm
> From: SAMINATHAN [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 10:05 AM
> To: JDJList
> Subject: [jdjlist] Heap Size of the JVM
>
> How do i find a heap size of my JVM.I need to display that in
>my
> application.
>
>
>
> And
>
>
>
> If i allow user to use Customized garbage collector , what side
> effects it will make?
>
>
>
>
>
> Thanks and Regards
>
> Saminathan.
To change your membership options, refer to:
> http://www.sys-con.com/java/list.cfm
>
>To change your membership options, refer to:
>http://www.sys-con.com/java/list.cfm
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm
Send and receive Hotmail on your mobile device: Click Here
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm
