Re: Intermittent JSP Caching/Compiling Issue while under load

2019-11-04 Thread Tim K
On Mon, Nov 4, 2019, 6:19 PM M. Manna wrote: > I’m just trying to understand, is there really a plausible solution here ? > Unless we have loadbalanced tomcat instances, can we truly ever stop such > behaviour (or more importantly, does it make sense to do so)? > > For my use case, We do it in

Generating passwords digests for 9.0.27

2019-11-04 Thread Pawel Veselov
Hello. I'm doing something where I need to generate a password for a tomcat user that is authenticated using org.apache.catalina.realm.UserDatabaseRealm with "sha" digest, the user database is produced by org.apache.catalina.users.MemoryUserDatabaseFactory from an xml file (standard

Re: Question about thread's "keep alive time" value in Embed Tomcat 8.5 in Spring Boot 1.5

2019-11-04 Thread Roy Zhang
Dear Christopher, Really appreciate ur quick response! Sorry for late reply due to personal affairs... >>>I haven't read the code in detail, but I'm guessing that the thread pool uses a queue and not a stack of threads, so each thread gets used, repeatedly, in order of availability. >>>Note that

Re: Intermittent JSP Caching/Compiling Issue while under load

2019-11-04 Thread M. Manna
I’m just trying to understand, is there really a plausible solution here ? Unless we have loadbalanced tomcat instances, can we truly ever stop such behaviour (or more importantly, does it make sense to do so)? For my use case, We do it in production almost every other day for patching, but we do

Re: Intermittent JSP Caching/Compiling Issue while under load

2019-11-04 Thread Alex O'Ree
Sounds a lot like the issue I reported a few months ago On Mon, Nov 4, 2019, 3:12 PM Tim K wrote: > On Mon, Nov 4, 2019, 10:30 AM Mark Thomas wrote: > > > > > Thanks. That helps as it means the issue should be reproducible on a > > single, stand-alone instance. > > > > Mark > > > > I was

Re: Intermittent JSP Caching/Compiling Issue while under load

2019-11-04 Thread Tim K
On Mon, Nov 4, 2019, 10:30 AM Mark Thomas wrote: > > Thanks. That helps as it means the issue should be reproducible on a > single, stand-alone instance. > > Mark > I was able to reproduce this behavior with a single server running a vanilla 9.0.21 using the example hello.jsp file... I was

Re: Intermittent JSP Caching/Compiling Issue while under load

2019-11-04 Thread Christopher Schultz
-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 >>> wrote: >>> How are you distributing the updates to the JSP to

Re: Unable to establish WebSocket connection on Tomcat Embed (9.0.24)

2019-11-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Alex, On 11/4/19 10:09, Alexander Stöcker wrote: > On Mon, Nov 4, 2019 at 2:55 PM Mark Thomas > wrote: >> >> On 04/11/2019 12:59, Alexander Stöcker wrote: >>> My code is basically just: >>> >>> Tomcat tomcat = new Tomcat();

Re: Intermittent JSP Caching/Compiling Issue while under load

2019-11-04 Thread Mark Thomas
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 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

Re: Intermittent JSP Caching/Compiling Issue while under load

2019-11-04 Thread Mark Thomas
On 04/11/2019 15:11, Tim K wrote: > On Mon, Nov 4, 2019, 10:06 AM Mark Thomas 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

Re: Intermittent JSP Caching/Compiling Issue while under load

2019-11-04 Thread Tim K
On Mon, Nov 4, 2019, 10:06 AM Mark Thomas 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 (DirResourceSet) within the of

Re: Unable to establish WebSocket connection on Tomcat Embed (9.0.24)

2019-11-04 Thread Alexander Stöcker
On Mon, Nov 4, 2019 at 2:55 PM Mark Thomas wrote: > > On 04/11/2019 12:59, Alexander Stöcker wrote: > > My code is basically just: > > > > Tomcat tomcat = new Tomcat(); > > tomcat.getConnector(); > > tomcat.setPort(8080); > > > > Context context =

Re: Intermittent JSP Caching/Compiling Issue while under load

2019-11-04 Thread Mark Thomas
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

Re: Intermittent JSP Caching/Compiling Issue while under load

2019-11-04 Thread Tim K
> > 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 >

Re: Unable to establish WebSocket connection on Tomcat Embed (9.0.24)

2019-11-04 Thread Mark Thomas
On 04/11/2019 12:59, Alexander Stöcker wrote: > My code is basically just: > > Tomcat tomcat = new Tomcat(); > tomcat.getConnector(); > tomcat.setPort(8080); > > Context context = tomcat.addContext("/context", new > File(".").getAbsolutePath()); > > //

Re: Unable to establish WebSocket connection on Tomcat Embed (9.0.24)

2019-11-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Alex, On 11/4/19 07:59, Alexander Stöcker wrote: > My code is basically just: > > Tomcat tomcat = new Tomcat(); tomcat.getConnector(); > tomcat.setPort(8080); > > Context context = tomcat.addContext("/context", new >

Unable to establish WebSocket connection on Tomcat Embed (9.0.24)

2019-11-04 Thread Alexander Stöcker
My code is basically just: Tomcat tomcat = new Tomcat(); tomcat.getConnector(); tomcat.setPort(8080); Context context = tomcat.addContext("/context", new File(".").getAbsolutePath()); // servlet Tomcat.addServlet(context, "myServlet", new