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 supp..
piyush.
------------- Original Message --------------
Celeste Haseltine <[EMAIL PROTECTED]> wrote:
To:[EMAIL PROTECTED]
From:Celeste Haseltine <[EMAIL PROTECTED]>
Date:Thu, 3 May 2001 09:46:22 -0500
Subject:Re: Garbage collection issue - URGENT
Rathna,
Please double check what I am about to say on the Allaire developer web
site, but I think that you have a misunderstanding of how a JSP
complier/interpreter works, which is what JRUN is.
In Java, you do a have garbage collection, such that when an object is no
longer being "referenced" by anything else, the garbage collector comes in
behind the scene and deallocates memory for you. But that is NOT how JRUN
server works. It is a JSP interpreter/complier, and as such, when you "hit"
a JSP page, that page is compiled into a servlet, and is then stored in
memory. It remains in memory UNTIL you either restart you server, or change
the JSP(at which time it is re-compiled). To my knowledge, JRUN server
NEVER deallocates memory related to the JSP's or the servelets. Because of
this, you sometimes get bizarre behavior when you change your JSP's often
enough WITHOUT stopping and restarting the JRUN server during the
development phase. That is one reason why I always stop and restart my JRUN
server when I change either a JSP or a Servlet. I want to make sure that
the previous copy has been "wiped" out of memory. Please note that this is
NOT how your Java Objects/Beans are handled. The "references" to those
objects and beans are deallocated by the JVM. Remember, the JVM is NOT
compiling/interpreting your JSP or servelets, it is JRUN.
Again, make sure that I am correct on this by posting to the Allaire
developers web site/discussion group for JRUN 3.0.
Good luck!!!
Celeste
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Rathna
Sent: Thursday, May 03, 2001 8:01 AM
To: [EMAIL PROTECTED]
Subject: Garbage collection issue - URGENT
Hi all,
I wonder is there any garbage collection problem in Jrun 3.0 version.
we are using JDK 1.2.2 in jrun 3.0 version on solarix box. In the long
run
the application becomes very slow.we have 1GB of swap space
and after running the jrun(after several hit) the swap space reduced to
nearly
15MB.so i have a feeling that the Jrun is not releasing the memory
correctly.
Is there any know memory issue in Jrun 3.0?
FYI,we have said the heap size as 512MB for Jrun.
Thanks in advance.
--
Cheers,
rathna
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets