Re: Garbage Collection

2002-01-31 Thread Vibha Jindal
:08 PM Subject: Re: Garbage Collection > Hello Vibha! > > VJ> Hi, > > VJ> I am creating instances of dataclasses in my Servlets and JSPs. > VJ> I am not explicitly setting them to null after use. > VJ> Could this be a problem? > VJ> I mean, would these obj

Re: Garbage Collection

2002-01-31 Thread Anton Tagunov
Hello Vibha! VJ> Hi, VJ> I am creating instances of dataclasses in my Servlets and JSPs. VJ> I am not explicitly setting them to null after use. VJ> Could this be a problem? VJ> I mean, would these objects not be eligible for garbage collection or would VJ> they be eligible? It depends. If you

Re: Garbage Collection

2002-01-30 Thread Sasi Bhushan
t; To: <[EMAIL PROTECTED]> Sent: Thursday, January 31, 2002 11:46 AM Subject: Re: Garbage Collection > Hi, > > I was intereested in knowing the effect in Servlets and JSPs. > I believe that the Servlets are destroyed as soon as they throw the JSP. > > And once the JSP dis

Re: Garbage Collection

2002-01-30 Thread Vibha Jindal
references to null. Or do I need to ? Regards, Vibha - Original Message - From: Vikramjit Singh <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 31, 2002 9:32 AM Subject: Re: Garbage Collection > hi vibha, > > the objects will be eligible for garba

Re: Garbage Collection

2002-01-30 Thread Vikramjit Singh
hi vibha, the objects will be eligible for garbagecollection if it is unreachable i.e. no object references to that particular object. It is always better to put your object references to null. You cannot be sure that setting the object references to null, they will be garbage collected but they

Re: Garbage collection issue - URGENT

2001-05-04 Thread Celeste Haseltine
bout Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of piyush jain Sent: Thursday, May 03, 2001 11:49 PM To: [EMAIL PROTECTED] Subject: Re: Garbage collection issue - URGENT Celeste, I wanted to understand that if that is the case then should i explicitly run the garbag

Re: Garbage collection issue - URGENT

2001-05-04 Thread Celeste Haseltine
ference [mailto:[EMAIL PROTECTED]]On Behalf Of Rathna Sent: Friday, May 04, 2001 12:17 AM To: [EMAIL PROTECTED] Subject: Re: Garbage collection issue - URGENT hi celeste, In our application , we use large number of JSP's say around 300. Will there be a problem for Jrun to load all the servlet

Re: Garbage collection issue - URGENT

2001-05-03 Thread Rathna
hi celeste, In our application , we use large number of JSP's say around 300. Will there be a problem for Jrun to load all the servlets into the memory in the long run?.Does jrun has the mechanism of unloading the servlet if it is not referenced for longer time? with regards, rathna.

Re: Garbage collection issue - URGENT

2001-05-03 Thread piyush jain
Celeste, I wanted to understand that if that is the case then should i explicitly run the garbage collector or set all the references to null in all the jsp's? how would i identify the references which would be occupying the memory?? i am using iplanet web server. it would be same that also i

Re: garbage collection

2000-05-16 Thread john_kenshole
I am having similar problems, We are using Websphere App Server to server JSP's, System spec is a Pentium 2 500, with 550mb ram We started with the default of 16 mb, but soon found that we had the jsp failing, or timing out, after increasing the jvm heap memory to 64mb this then allowed the serve

Re: garbage collection

2000-05-16 Thread Osvaldo Pinali Doederlein
From: "Kathy Wargo" <[EMAIL PROTECTED]> > we are developing a java application using servlet but after a few runs the application slows down. We noticed that this happens once the JVM's heap size reaches 16M. I would assume the garbage collection would be invoked and clear up the heap but this doe

Re: Garbage collection

1999-01-02 Thread Carles Pi-Sunyer
that if the GC > would > like to run, it can. > > -tg > - Original Message - > From: Pedro Teixeira <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, November 04, 1999 10:51 AM > Subject: Re: Garbage collection > > > Tao K

Re: Garbage collection

1999-01-02 Thread Reisman Jason
02:26 PM Please respond to Taylor Gautier                 To:        [EMAIL PROTECTED]         cc:                 Subject:        Re: Garbage collection That doesn't FORCE garbage collection.  Just suggests that if the GC would like to run, it can. -tg - Original Message - From:

Re: Garbage collection

1999-01-02 Thread David Mossakowski
If implemented correctly the destroy() method can at most cleanly forget all references so as to make them garbage collectable. It doesn't call garbage collection. System.gc() also does not necessarily run the garbage collection right there when called. This call only tells the garbage man "Hey

Re: Garbage collection

1999-01-02 Thread Kirkdorffer, Daniel
C actually occurs. Us mere mortals can merely make requests. ;^) Dan > -- > From: Reisman Jason[SMTP:[EMAIL PROTECTED]] > Reply To: [EMAIL PROTECTED] > Sent: Thursday, November 04, 1999 9:11 AM > To: [EMAIL PROTECTED] > Subject: Re: Garbage col

Re: Garbage collection

1999-01-02 Thread Pedro Teixeira
Tao Kang wrote: > No. You cannot force garbage collection. No? What about java.lang.System.gc() ? -- # Pedro Teixeira USD Link<- Tao Kang wrote: No. You cannot force garbage collection. However, you can make an object to become 'subject to' garbage collection by making it

Re: Garbage collection

1999-01-02 Thread brian
The Good News: This code will repeatedly run the garbage collector until it actually collects the garbage, overcoming the "best effort" nature of System.gc(). The Bad News: In a multi-threaded environment, this thread might well loop forever, as the (native Sun jdk) gc won't actually throw anythi

Re: Garbage collection

1999-01-02 Thread Taylor Gautier
That doesn't FORCE garbage collection. Just suggests that if the GC would like to run, it can. -tg - Original Message - From: Pedro Teixeira <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 04, 1999 10:51 AM Subject: Re: Garbage collection

Re: Garbage collection

1999-01-02 Thread David Orkin
try this code: Runtime rt = Runtime.getRuntime( ); long isFree = rt.freeMemory( ); long wasFree; do { wasFree = isFree; rt.gc( ); isFree = rt.freeMemory( ); } while( isFree > wasFree ); rt.runFinalization( ); === To

Re: Garbage collection

1999-01-02 Thread Reisman Jason
Yes: System.gc(); Campbell <[EMAIL PROTECTED]> Sent by: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> 11/04/99 10:20 AM Please respond to Campbell                 To:        [EMAIL PROTECTED]         cc:                 Subject:        Garbage co

Re: Garbage collection

1999-01-02 Thread ACI Team (Chennai)
hi campbell, in java u have the destroy() method which when called will reclaim the resources held by the object on which the method was invoked. ex: if u call this method on a applet the thread gets killed. regards saravana kumar > -- > From: Campbell[SMTP:[EMAIL PROTECTE

Re: Garbage collection

1999-01-02 Thread Tae Kang
No.  You cannot force garbage collection.  However, you can make an object to become 'subject to' garbage collection by making it 'unreachable.'  (assigning the reference varaible to null, for example)   Because the garbage collector runs asynchronously to your program as a separate thread,

Re: Garbage collection

1999-01-02 Thread David Chisholm
From the JDK 1.1.7B javadocs for java.lang.System.   gc public static void gc() Runs the garbage collector. Calling the gc method suggests that the Java Virtual Machine expend effort toward recycling unused objects in order to make the memory they currently occupy available for qu