Konstantin,

On 7/1/21 04:17, Konstantin Kolinko wrote:
вт, 29 июн. 2021 г. в 19:35, Christopher Schultz <ch...@christopherschultz.net>:

Konstantin,

On 6/29/21 10:21, Konstantin Kolinko wrote:
ср, 2 июн. 2021 г. в 23:16, Christopher Schultz <ch...@christopherschultz.net>:
[...]
Has the page been compiled once, or its modification time is being
checked over and over, or even worse: being recompiled?

Probably not being recompiled. The source JSP has a file-date in 2016
and the generated .java and .class files also have a date in 2016.

File dates do not matter: Tomcat resets them to match the original
file, as that is a way to track the changes. That is why I asked about
the file system and its supported time precision.

The time when the java file was generated is shown with a comment,
"Generated at: " at the top of the file.

I have two Tomcat nodes.

Node 1:

 * Version: Apache Tomcat/8.5.34
 * Generated at: 2021-04-08 21:22:24 UTC

I'm currently running 8.5.65, so this was certainly generated during a previous JVM lifetime.

Note 2:
 * Version: Apache Tomcat/8.5.42
 * Generated at: 2021-02-27 23:04:06 UTC

Also note "_jspx_dependants.put(...)" lines in the java file. Those
are dependencies whose modification timestamps are checked as well.

Node 1:

_jspx_dependants.put("/admin/httpheaderreferences.jsp", Long.valueOf(1400083190000L));
    _jspx_dependants.put("/admin/util.jsp", Long.valueOf(1400083190000L));
_jspx_dependants.put("/admin/htmlescape.jsp", Long.valueOf(1573394428000L));

Those dates, respectively, are:
2014-05-14 15:59:50 +0000
2014-05-14 15:59:50 +0000
2019-11-10 14:00:28 +0000

So... well before the launch of the JVM.

Node 2:
_jspx_dependants.put("/admin/httpheaderreferences.jsp", Long.valueOf(1562883220000L));
    _jspx_dependants.put("/admin/util.jsp", Long.valueOf(1562883220000L));
_jspx_dependants.put("/admin/htmlescape.jsp", Long.valueOf(1573394718000L));

Those dates, respectively, are:

2019-07-11 22:13:40 +0000
2019-07-11 22:13:40 +0000
2019-11-10 14:05:18 +0000

So... again, well before JVM launch.

Are "webapps" and "work" directories on the same kind of file system
(with the same supported precision for file modification times)?

Exactly the same filesystem.

I can't remember which of the 2 nodes threw this error. I may be able to go back into the logs if it would be helpful.

-chris

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

Reply via email to