I had the same question. In all of the years I've worked with Java I've always thought it was free of memory leaks. If you use a different compiler does the problem go away. Is that how people like JRun (Macromedia) and WebSphere (IBM) avoid the problem?

Dick Steflik

Nikola Milutinovic wrote:

BTW, there is a bug with Tomcat which will cause it to run out of
memory after a number of restarts. You will probably run into this
with 30 students uploading new classes. You will also want to make
sure that the fork attribute for the JspServlet is set to true as well
as compiling JSPs will leak memory unless the compiling process is
forked.


Is this true only for Tomcat4 or for version 5 as well?


True for both.



It strikes me odd, I've been hearing about "memory leak while recompiling JSPs" for a couple of years. Is it really there and is it going to be removed in the near future? I recall that being attributed to "javac" memory leaks. That's why they advise to pre-compile JSP for production environment. I cannot fathom how can it be:

a) so consistent
b) not dependant on JDK version

Any insight?

Nix.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





Reply via email to