tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Intermittent JSP Caching/Compiling Issue while under load
Date Mon, 04 Nov 2019 15:06:18 GMT
On 04/11/2019 13:55, Tim K wrote:
>>
>> 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:

How are you distributing the updates to the JSP to all 4 servers?

Is there a shared file system involved? If yes, exactly what is shared
between the instances?

Mark


> 
> 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
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message