tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim K <tim.k.5...@gmail.com>
Subject Re: Intermittent JSP Caching/Compiling Issue while under load
Date Mon, 04 Nov 2019 13:55:34 GMT
>
> In my tests when hitting it every second, I make a few changes and it
> works fine (all within the same min).  Then I'll let it go for a few mins,
> make a change and more often than not, one or more of the servers gets
> stuck on the previous jsp change... I'm pretty sure the class/java
> timestamps get updated but the content does not.
>

This morning I made one single change to the JSP which appeared the get
stuck on all 4 of my servers, as shown below:

https://pasteboard.co/IF8nrEG.jpg

Also, with additional logging, it appears that Tomcat sees the change and
regenerates the java and class files but yet it still serves the former JSP
content.  If I manual delete the class/java files under the work dir, it
will successfully pick up the latest.

04-Nov-2019 07:30:30.646 FINE [Catalina-utility-2]
org.apache.jasper.compiler.Compiler.isOutDated Compiler: outdated:
/apache-tomcat-9.0.21/work/Catalina/localhost/context-root/org/apache/jsp/abcxyz/test_jsp.class
1572443847000

04-Nov-2019 07:30:30.646 FINE [Catalina-utility-2]
org.apache.jasper.compiler.Compiler.removeGeneratedClassFiles Deleting
/apache-tomcat-9.0.21/work/Catalina/localhost/context-root/org/apache/jsp/abcxyz/test_jsp.class

04-Nov-2019 07:30:30.647 FINE [Catalina-utility-2]
org.apache.jasper.compiler.Compiler.removeGeneratedFiles Deleting
/apache-tomcat-9.0.21/work/Catalina/localhost/context-root/org/apache/jsp/abcxyz/test_jsp.java

04-Nov-2019 07:30:30.652 FINE [Catalina-utility-2]
org.apache.jasper.compiler.Compiler.generateJava Generated
/apache-tomcat-9.0.21/work/Catalina/localhost/context-root/org/apache/jsp/abcxyz/test_jsp.java
total=4 generate=1 validate=3

04-Nov-2019 07:30:30.718 FINE [Catalina-utility-2]
org.apache.jasper.compiler.JDTCompiler.generateClass Compiled
/apache-tomcat-9.0.21/work/Catalina/localhost/context-root/org/apache/jsp/abcxyz/test_jsp.java
59ms

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message