: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
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
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
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
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
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
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
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.
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
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
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
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
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:
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
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
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
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
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
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
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
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
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,
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
23 matches
Mail list logo