Re: Finalization of session attribute

2001-01-17 Thread Artur Radosz
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. :(

RE: Finalization of session attribute

2001-01-16 Thread Stefan Langer
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

Re: Finalization of session attribute

2001-01-16 Thread Artur Radosz
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

Re: Finalization of session attribute

2001-01-16 Thread William Brogden
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