hai all,
        Iam using tomcat server.The problem is every time when i modify beans or 
servlets i need to restart server or else server is not recoginising newly compiled 
class(i.e. beans or servlets)


------------- Original Message --------------
Amol Katdare <[EMAIL PROTECTED]> wrote:
To:[EMAIL PROTECTED]
From:Amol Katdare <[EMAIL PROTECTED]>
Date:Sat, 28 Jul 2001 13:44:54 +0530
Subject: Re: How to free memory used by the session

override finalize() of all the classes whose objects you are putting in the
session and do the necessary cleanup in each of these classes.
on logout, remove all the objects from the session and then set the session
variable to null.

----- Original Message -----
From: "Pramod Nair" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 28, 2001 11:17 AM
Subject: Re: How to free memory used by the session


> My guess would be that you're probably still referencing some object
within
> the session object from outside.
> try setting all objects WITHIN the session object to null on logout ,
rather
> than setting the session object itself to null.
>
> regards
> Pramod Nair
>
> ----- Original Message -----
> From: "David V�squez Estrada" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 27, 2001 10:18 PM
> Subject: How to free memory used by the session
>
>
> > Hi all,
> >
> > I am storing some big trees and variables into session variables, which
> > are removed when the user press a link called "logout". When logout
> > occurs internally all session variables are removed to free the used
> > memory, but the memory is not actually freed, if I login again the
> > memory is still increasing.
> >
> > How to actually free the memory used by the session variables?
> >
> > I've tried to get the session variable, set it to null, and the remove
> > the session variable, and also explicitly call the garbage collector,
> > but the problem persist.
> >
> > Please give me some advises to deal with it. I'm using Apache+Tomcat.
> >
> > Thanks in advance,
> >
> > David.
> >
> >
>
___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


_________________________________________________________
For Rs. 2,000,000 worth of Aptech scholarships click below
http://events.rediff.com/aptechsch/scholarship.htm

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to