I am new to the list and am not sure I know the context but...

If I remember the documentation right the reloaded servlets are loaded 
using the adaptive class loader instance 'cos classes once loaded cannot be 
unloaded unless the associuated classloader is gone ! So the only way you 
can use the new versions is using the adaptive class loader. The problem is 
that Class Garbage collection is not implemented well in most VM's so you 
are bound to face this problem until the JVM's improve their support for 
this.

I am sincerelyinterested in knowing if this problem exists in every JVM 
including hotsopt and its new GC... any feedback ?

Hope this helps,

Mukund Balu
-----Original Message-----
From:   Ari Halberstadt [SMTP:[EMAIL PROTECTED]]
Sent:   Sunday, May 30, 1999 8:00 PM
To:     Java Apache Users
Subject:        Re: Resource usage

"Brahm van Niekerk" <[EMAIL PROTECTED]>
>When I start Apache up, about 18MB of memory is used.  Then as I run
>servlets (which I presume is then being loaded into memory), the memory
>usage increases to about 50MB.  Then as I recompile and reload the 
servlets,
>the memory usage keeps on going up until its starts paging out to swap
>disks.  The paging activity becomes quite intense and it doesn't seem as
>though any memory is being released.

Sounds like a memory leak. If you have static data or threads referencing
memory, that memory won't get reclaimed by the GC. Try monitoring GC with
the -verbosegc option to the JVM, and use tools like IBM's JInsight
alphaworks.ibm.com, OptimizeIt www.optimizeit.com, etc., to analyze where
the memory is going.



-- Ari Halberstadt mailto:[EMAIL PROTECTED] <http://www.magiccookie.com/>
PGP public key available at <http://www.magiccookie.com/pgpkey.txt>




-- --------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]



-- --------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to