DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10563>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10563 Multiple compiles for multiple requests Summary: Multiple compiles for multiple requests Product: Tomcat 4 Version: 4.1.6 Platform: Other OS/Version: Other Status: NEW Severity: Minor Priority: Other Component: Jasper 2 AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If multiple requests are presented for the same JSP at the same time, then multiple instances of org.apache.jasper.compiler.JspCompiler are created and multiple javac compilations are started at the same time. While this eventually gives the correct results, it can make start up of a JSP site very slow in the presences of live traffic (and the user is JspC resistant for some unknown reason?) I have tested a simple fix of synchronizing on a static in org.apache.jasper.compiler.Compiler.compile: if (!isOutDated()) return false; synchronized(Compiler.class) { if (!isOutDated()) return false; and it appears to work OK - but may not be optimal? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>