glenn 2002/12/31 06:12:05 Modified: . RELEASE-NOTES-4.1.txt catalina/src/conf web.xml webapps/tomcat-docs jasper-howto.xml Log: Implement new Ant javac fork option. If set to true Ant forks a new process to compile JSP pages and does it without synchronization. Default is false. Revision Changes Path 1.43 +5 -1 jakarta-tomcat-4.0/RELEASE-NOTES-4.1.txt Index: RELEASE-NOTES-4.1.txt =================================================================== RCS file: /home/cvs/jakarta-tomcat-4.0/RELEASE-NOTES-4.1.txt,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- RELEASE-NOTES-4.1.txt 30 Dec 2002 16:06:09 -0000 1.42 +++ RELEASE-NOTES-4.1.txt 31 Dec 2002 14:12:05 -0000 1.43 @@ -157,6 +157,10 @@ [4.1.8] JspCompilationContext: Use _ instead of $ to generate file and class names for jsp servlets. +[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. ========================== BUG FIXES AND IMPROVEMENTS: 1.47 +4 -0 jakarta-tomcat-4.0/catalina/src/conf/web.xml Index: web.xml =================================================================== RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/conf/web.xml,v retrieving revision 1.46 retrieving revision 1.47 diff -u -r1.46 -r1.47 --- web.xml 27 Dec 2002 20:54:43 -0000 1.46 +++ web.xml 31 Dec 2002 14:12:05 -0000 1.47 @@ -115,6 +115,10 @@ <!-- Explorer when using <jsp:plugin> tags. --> <!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] --> <!-- --> + <!-- fork Tell Ant to fork compiles of JSP pages so that --> + <!-- a separate JVM is used for JSP page compiles --> + <!-- from the one Tomcat is running in. [false] --> + <!-- --> <!-- javaEncoding Java file encoding to use for generating java --> <!-- source files. [UTF8] --> <!-- --> 1.4 +11 -3 jakarta-tomcat-4.0/webapps/tomcat-docs/jasper-howto.xml Index: jasper-howto.xml =================================================================== RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/tomcat-docs/jasper-howto.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- jasper-howto.xml 28 Sep 2002 00:24:31 -0000 1.3 +++ jasper-howto.xml 31 Dec 2002 14:12:05 -0000 1.4 @@ -114,6 +114,10 @@ Explorer when using <jsp:plugin> tags. Default <code>clsid:8AD9C840-044E-11D1-B3E9-00805F499D93</code>.</li> +<li><strong>fork</strong> - Have Ant fork JSP page compiles so they are +performed in a seperate JVM from Tomcat? <code>true</code> or +<code>false</code>, default <code>false</code>.</li> + <li><strong>javaEncoding</strong> - Java file encoding to use for generating java source files. Default <code>UTF8</code>.</li> @@ -152,9 +156,13 @@ <ul> <li><strong>development</strong> - To enable background compilation of JSP pages set this to <code>false</code>.</li> -<li><strong>compiler</strong> - The internal JVM javac compiler used by Ant -has a known memory leak. If you anticipate that JSP pages will get recompiled -frequently consider using an external compiler such as <code>jikes</code>.</li> +<li><strong>fork</strong> - The internal JVM javac compiler used by Ant +has a known memory leak. And Ant requires that java compiles be synchronized, +i.e. only one JSP page can be compiled at a time. Set fork to +<code>true</code> so that Ant compiles JSP pages in a seperate JVM. +This removes the synchronization of JSP page compiles and prevents +all the javac classes from being instantiated and subsequently garbage +collected by the JVM Tomcat is running in.</li> </ul> </p>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>