tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Intermittent JSP Caching/Compiling Issue while under load
Date Mon, 04 Nov 2019 18:50:51 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Mark,

On 11/4/19 11:56, Mark Thomas wrote:
> On 04/11/2019 15:30, Mark Thomas wrote:
>> On 04/11/2019 15:11, Tim K wrote:
>>> On Mon, Nov 4, 2019, 10:06 AM Mark Thomas <markt@apache.org>
>>> wrote:
>>> 
>>>> 
>>>> 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
>>>> 
>>> 
>>> Common NFS storage included via <PreResources> (DirResourceSet)
>>> within the <Context> of my clustered application.  But to rule
>>> out any issue with that, I tried using local storage within the
>>> war directory itself and updated the JSP on local storage
>>> exactly at the same time and the problem still persisted.
>> 
>> Thanks. That helps as it means the issue should be reproducible
>> on a single, stand-alone instance.
> 
> Hmm. I have a theory but it is one that I can't easily reproduce
> because the root cause is using non-volatile fields across multiple
> threads.
> 
> How plausible is it that there would be two concurrent requests for
> that modified JSP?

Pretty plausible IMHO. Imagine /index.jsp being updated and everybody
hits that.

Especially in these days of "there is only one page in the whole site
and you only request it once" web applications. (*grump*)

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl3AcwoACgkQHPApP6U8
pFiHVxAAvV1yfHGQZbuZ4y+kllROBrrvlm8o2mlxY6GqMWJWIrkfwG2E1y1PveXm
r6CR310V8/gK2N9uK7rbhT42rMfMUN+zWy3O6qI6jEwidknh26uYvok75a5rnpx1
f/Gk/PfbFCECownrvuGIG7Tgecdw6eWCR2yT2ZMDNdkM0UG8T0mb5XdSUEhm6sm3
EJvA8uYFY3mIb+6uXzTYotUfA1Ij41+K+/mzFjXr/upWu0QYfugckjW4cOG1daT6
h1B8LLZmi8cAqjDInWSYuuKyudsqfoxlyIdD98AQSEt5DnhvbqQazEcWI3eOJ+Qc
ikltp5clIwT+fDYZkzBDMlDwfyDtx33Y0FXBrzgA8hetfr3PV563fmHgNqewUbLU
HZWbaKW8TDuZEasLaHnTPRi5oJCGGIa0YK7dY0kWIGgT0sOOjyFRqFOr+gF/+tnf
m8GYzKistvpWe4Sf8WSYpOeghBrMfBUoBYLjHx3IGJW7r8lFQCIXvvjz4bm2krIy
vYegeUT3UEQ7P7I/0Aug7m+LTiyfH3N4fcxOFgRBoqUIt0oXLyarCZF1y4eDZiqM
3htPudHP8K5qHNbu7Zvt73B9pye5cUdSt0HU9QO6CwjrJa3qSl0EMsPzPOJcecar
omN0NA2Q6w46LwDMzDiq8E+zNgfSw/mSPkSWvO9aGmvzxy/OHKA=
=d7q8
-----END PGP SIGNATURE-----

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


Mime
View raw message