From the Release notes (for versions older than 4.1.19): ================================================================ -------------------- JAVAC leaking memory: --------------------
The Java compiler leaks memory each time a class is compiled. Web applications containing hundreds of JSP files may as a result trigger out of memory errors once a significant number of pages have been accessed. The memory can only be freed by stopping Tomcat and then restarting it.
The JSP command line compiler (JSPC) can also be used to precompile the JSPs.
You can prevent this by setting the JspServlet init parameter fork to true in conf/web.xml. This tells jasper to invoke java compiles of JSP pages as an external process.
================================================================
And added in 4.1.19 ...
[4.1.19] Compiler:
Added new "fork" option. This tells Ant to fork the JSP page javac compile so that it is run in a different JVM from the one Tomcat is running in. Please refer to the Jasper-HOWTO for more information.
Either that change (and/or the jvm bug fix in 1.4.?) fixed the memory leak when compiling JSP pages.
-Tim
Brian Menke wrote:
Tim, this one caught my eye. What do you mean make sure your not compiling JSP pages?
-Brian
-----Original Message----- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 6:20 AM To: Tomcat Users List Subject: Re: Memory Woes
Also make sure your not compiling JSP pages.
-Tim
Shapira, Yoav wrote:
Howdy, You need to keep profiling until you find memory leaks and fix them, or redesign your app to use less memory, or increase the amount available to the JVM, or restart tomcat more frequently, or some combination of the above.
Yoav Shapira Millennium ChemInformatics
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
