William Brogden wrote:
What about the Runtime method runFinalization()?
That is supposed to force execution of all GCed
objects that have not yet been finalized.
Every 30m i`m calling System.gc(), but memory taked by session
attributes (and maybe by session too?) isn`t released. :(
If you go into the java-specification you will notice that there is no guarantee that
the finalize() method will actually be called by the gc. If you want to make sure
finalize is executed put it in a different method and call it from a finally block.
SOemthing like this
void
Stefan Langer wrote:
If you go into the java-specification you will notice that there is no guarantee
that the finalize() method will actually be called by the gc. If you want to make
sure finalize is executed put it in a different method and call it from a finally
block.
SOemthing like
What about the Runtime method runFinalization()?
That is supposed to force execution of all GCed
objects that have not yet been finalized.
--
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP
ISBN 0-7821-2809-2