From users-return-268667-archive-asf-public=cust-asf.ponee.io@tomcat.apache.org Sun Nov 3 11:42:47 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id F40A8180607 for ; Sun, 3 Nov 2019 12:42:46 +0100 (CET) Received: (qmail 23954 invoked by uid 500); 3 Nov 2019 11:42:42 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 23935 invoked by uid 99); 3 Nov 2019 11:42:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Nov 2019 11:42:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id DB4D7C082D for ; Sun, 3 Nov 2019 11:42:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.249 X-Spam-Level: X-Spam-Status: No, score=0.249 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=0.2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id qQNP_99eTVHR for ; Sun, 3 Nov 2019 11:42:37 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.178; helo=mail-oi1-f178.google.com; envelope-from=tim.k.5967@gmail.com; receiver= Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id 307E6BC56D for ; Sun, 3 Nov 2019 11:42:37 +0000 (UTC) Received: by mail-oi1-f178.google.com with SMTP id v186so11789691oie.5 for ; Sun, 03 Nov 2019 03:42:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=7o1WGB9BqOzs4DiCQGw3pzaiFh3eMbD3gSoK0IbVKO0=; b=kqanI8Zd9VIad1aUh6l7UseEpLwaAaXKca56zAudSGCQwntumKBqrZaUsnKpE36hRl RW0pBnXvoSYwuwNp6HWb/d+yzzNmsRsFPYClMh5CSYFFzklz9f699Bb4a/MHM3DR+lIY 9hRrJLUNlXw2vg3sKGO02FJLqiozL+3gkPJ4lDGsv29sovdtRlF1qXz4Q5kTDUsv39gk FChotoAPa706Elob8F1mQDub6+C8OUCKXGbY01rDuhBpJqYisEluS1B64f3unf8V6aFU P4OOu8AVxTu7RI7L1c+xI0xuBdkr2x/Yb02BQ0h5wIgget7V0XaQeqU+GR6LOHhCzCLg G8TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=7o1WGB9BqOzs4DiCQGw3pzaiFh3eMbD3gSoK0IbVKO0=; b=aSkebAwCnU4e9/BeGn/pK5BZ/zsbOw/oTLu6nxwBAOgqGHCcyn2DM3x5pMjDxLHbAw mSxZ13YmuHnHN4TxLIPWetkxAIkG0MBrN/PMM/8ivHnswimj4WTBMXbyoCvAFnYWuFs4 iZOzAAbq+6GAdKbgA8Z6fcMTinJaRI3/tMbKkp97SJ4DCLcdShqvYFLd1q4SdzUkeQMi 0Ltg+KXwQbIg4uD95SY9OaWsrs2SIffvubAlaWMoyj4czrI0QX2iiCCV5q8XP3M1RlWm uoJa07MQLEUSF53oNM6clg/cNlqa3X6ptz+LBJjJFc59SgDRUIzCRvQg0vma2ltz17qp pSjg== X-Gm-Message-State: APjAAAW7dG5JbbRYHoE26MBv9hLcgSB0cW2zUClFsPGh3H5X15aVrAHn DTsM8I8GwM+lXChau/uHnYLZbaSySPqXgLwhOtijjA== X-Google-Smtp-Source: APXvYqwpZpLJ+WATX0b/89sMFQmOkkcH7YBT7qhgdcZsFjGO1hMwQwArxS+8BPpBKX7TkkP3z1txsPT+n31bxYk1C4U= X-Received: by 2002:aca:df0a:: with SMTP id w10mr11907629oig.10.1572781350096; Sun, 03 Nov 2019 03:42:30 -0800 (PST) MIME-Version: 1.0 References: <420900e0-5097-0881-edea-c9ba175ea99b@apache.org> In-Reply-To: From: Tim K Date: Sun, 3 Nov 2019 06:42:19 -0500 Message-ID: Subject: Re: Intermittent JSP Caching/Compiling Issue while under load To: Tomcat Users List Content-Type: multipart/alternative; boundary="000000000000ae94b905966fb1f6" --000000000000ae94b905966fb1f6 Content-Type: text/plain; charset="UTF-8" On Fri, Nov 1, 2019, 3:11 AM Mark Thomas wrote: > On 31/10/2019 22:07, Mark Thomas wrote: > > > > > > On 29/10/2019 14:31, Tim K wrote: > >> I'm on Tomcat 9.0.21 on Linux. I have Jsps that get updated while > >> Tomcat is running. I believe development mode is set to true by > >> default, I do not have it set to true or false in the > >> $CATALINA_BASE/conf/web.xml for the Jsp servlet init-params. I have a > >> cluster of 4-8 servers across different envs. I'm noticing an > >> intermittent issue where 1 or more of my tomcat instances do not > >> always compile the latest Jsp content while the server is under load. > >> I've tried debugging the org.apache.jasper.compiler, it appears that > >> the class/java files of the tomcat work directory are getting > >> deleted/regenerated (get a new timestamp as well) but occasionally the > >> contents of the Jsp becomes out of sync in the generated class file > >> within the tomcat work directory. I've tried different combinations > >> of development mode, checkInterval, modificationTestInterval but none > >> seem to help resolve this issue. This only seems to be an issue when > >> the server is under a load. I was able to reproduce in my lower env > >> (4 server cluster) while hitting the Jsp every 1 seconds while > >> changing the jsp contents. I can make a subsequent change and the Jsp > >> content likely get's picked up by the same server(s) which previous > >> didn't pick it up. > > > > That you see the issue when hitting the JSP once a second makes me think > > it is something to do with timestamp resolution. Are you making > > modifications within a similarly short time-frame? Or do you still see > > the issue when the modifications are, say, minutes apart? > > Could this be the issue: > https://bz.apache.org/bugzilla/show_bug.cgi?id=63897 > > Mark > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org 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. --000000000000ae94b905966fb1f6--