You may want to look into java.lang.ref.SoftReferences.
When you assign a soft reference to an object, it is
guaranteed to be collected before an out of memory
exception is thrown.
-tim
> -----Original Message-----
> From: Mike Clark [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 23, 2001 5:38 PM
> To: Orion-Interest
> Subject: Re: Memory Leak
>
>
> The memory won't actually be reclaimed until the GC kicks in, which in
> most cases isn't until the heap is a certain percentage utilized.
>
> Mike
>
> --- Dan DiCesare <[EMAIL PROTECTED]> wrote:
>
> <HR>
> <html><DIV>
> <P><FONT face="Geneva, Arial, Sans-serif">Hello,</FONT></P>
> <P><FONT face=Arial>I am using JSP <useBean> tags to invoke java
> beans. In my java beans I create a reference to my EJB's. In my
> JSP I scope the bean as session. In other words the syntax looks
> as follows:</FONT></P>
> <P><jsp:useBean id="fooBean"
> scope="session"
> class="FooBean" /></P>
> <P><FONT face="Geneva, Arial, Sans-serif">What we are noticing is that
> every time the page is called, a certain amount of memory is used by
> each session as expected by the session scope. However, when the
> session is complete, the memory is not released by the JVM. The end
> result is that we need to stop Orion server and restart to clear the
> JVM memory usage. Can anyone advise as to what we need to do.
> </FONT></P>
> <P><FONT face=Arial></FONT> </P>
> <P><FONT face=Arial>Thanks</FONT></P>
> <P><FONT face=Arial>-Dan</FONT></P></DIV><br clear=all><hr>Get your
> FREE download of MSN Explorer at <a
> href="http://explorer.msn.com">http://explorer.msn.com</a><br>
> </p></html>
>
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices.
> http://auctions.yahoo.com/
>
