Re: Weirdest Tomcat Behavior Ever?

2020-11-13 Thread Paul Carter-Brown
-Original Message- > > From: Paul Carter-Brown > > Sent: Friday, October 16, 2020 6:11 AM > > To: Tomcat Users List > > Subject: Re: Weirdest Tomcat Behavior Ever? > > > > Hi Eric, > > > > These weird situations are sometimes best looked at

Re: Weirdest Tomcat Behavior Ever?

2020-10-16 Thread Paul Carter-Brown
Hi Eric, These weird situations are sometimes best looked at by confirming what the OS is seeing from user-space. Can you run: sudo strace -r -f -e trace=network -p You can then log that to a file and correlate and see if the kernel is in fact being asked to send the response. It's very

Re: Request for a tip with NoClassDefFoundError

2020-09-23 Thread Paul Carter-Brown
NoClassDefFoundError means that the class in question threw an exception during its static initialisation phase. Then later on whenever some code tries to access the class statically or create an instance the JVM will throw a NoClassDefFoundError. This is not the same as a class not found which

Re: Tomcat Handling close_waits

2020-08-16 Thread Paul Carter-Brown
Hi Norbert, The TCP socket states and timers are managed by the underlying OS and not by Tomcat. Can you paste a netstat -an result so I can see what you mean. Also, is the client using HTTP 1.1 with keep-alive or not? What kind of traffic is this? Paul On Sun, Aug 16, 2020 at 7:16 PM Norbert

Re: Wrong timezone in Date and Last-Modified-Headers

2020-06-10 Thread Paul Carter-Brown
At runtime, any code can call TimeZone.setDefault to change the timezone of the JVM. I'd suggest logging TimeZone.getDefault().getDisplayName(Locale.ENGLISH); intermittently and seeing if some code somewhere is changing the timezone. Could be in any library... Paul On Wed, Jun 10, 2020 at

Re: Tomcat 9.0.0 multiple thread issue

2020-06-09 Thread Paul Carter-Brown
I assume a servlet request is kicking off this process? If this is correct then are you 100% sure that something is not calling the servlet more than once? Perhaps a retry after a timeout or something? Turn your access log on and look at what requests are coming in to the server Paul On Tue,

Re: Performance test with Tomcat 9 shows increased cpu/disk usage because of repeated opening/closing of jars in WEB-INF/lib

2019-10-09 Thread Paul Carter-Brown
Hi Anthony Have you turned debug logging on to see what it is picking up as modified? On Wed, 09 Oct 2019, 22:24 Rhuberg,Anthony, wrote: > Thanks for your responses. > > I understand that re-reading the static files is not optimal, but how does > reading files from the jar affect them being

Re: Add jar to catalina base / tomcat instance classpath (Tomcat 9)

2019-09-04 Thread Paul Carter-Brown
Can you not just put the jar in the /lib folder of tomcat On Wed, Sep 4, 2019 at 5:17 PM Stephane Passignat wrote: > I may misread the catalina.sh (else instead of elif). > > I try to add a setenv.sh in the catalina_home. > > -Original Message- > From: Stephane Passignat

Re: Tomcat Server Using 100% CPU

2019-08-08 Thread Paul Carter-Brown
Please post a jstack of the pid 10 seconds apart. That will reveal all. On Thu, 08 Aug 2019, 20:22 Coty Sutherland, wrote: > I'd suggest writing a small script to loop about 10 times and capture top > and thread dumps with jstack at the same time, then wait a few seconds then > repeat. After

Re: java.lang.NoClassDefFoundError: Could not initialize class net.sf.ehcache.Element

2019-07-10 Thread Paul Carter-Brown
NoClassDefFoundError is not the same as ClassNotFoundException Typically a NoClassDefFoundError is due to a class failing its static initialisation when first loaded by the classloader. Can you check in your logs for any prior errors (even at bootup) relating to class failing to be loaded Paul

Re: Initiating httpservletrequest from inside Tomcat / TomEE

2019-05-06 Thread Paul Carter-Brown
appropriate context for the request to tomcat. I don't know off hand > where in the tomcat code this cut point can be found. > > Is this a performance issue, or are you building a proxy? > > What is the problem you're trying to solve? > > On 5/6/19, Paul Carter-Brown wrote: &g

Re: Initiating httpservletrequest from inside Tomcat / TomEE

2019-05-06 Thread Paul Carter-Brown
ote: > For reference, I did find this after searching "calling a servlet > programmatically": > https://docs.oracle.com/cd/E19146-01/819-2634/abxbn/index.html > > On 5/6/19, Paul Carter-Brown wrote: > > I think we are completely missing each other. Forget sockets - t

Re: Initiating httpservletrequest from inside Tomcat / TomEE

2019-05-06 Thread Paul Carter-Brown
that without going out and back in on TCP? On Mon, May 6, 2019 at 5:14 PM John Dale wrote: > Sockets are an implementation of TCP/UDP inherently. > > Perhaps a mountaintop signal fire? > > ;) > > John > > > On 5/6/19, Paul Carter-Brown wrote: > > lol on the Sema

Re: Initiating httpservletrequest from inside Tomcat / TomEE

2019-05-06 Thread Paul Carter-Brown
t; If these don't work-out for you, rather than using .NET, PHP, Python, > or some other Java facsimile at best, I recommend using the semaphore > telegraph: > https://en.wikipedia.org/wiki/Semaphore_telegraph > > Sincerely, > > John > DB2DOM > > On 5/6/19,

Re: Initiating httpservletrequest from inside Tomcat / TomEE

2019-05-06 Thread Paul Carter-Brown
ing, but without > knowing more about the tools you're using, I can't say for sure if > this is the direction you'll want to go. > > On 4/29/19, Paul Carter-Brown wrote: > > Hi > > > > I'm trying to design a Kafka consumer and producer that will run inside > the >

Initiating httpservletrequest from inside Tomcat / TomEE

2019-04-29 Thread Paul Carter-Brown
Hi I'm trying to design a Kafka consumer and producer that will run inside the tomcat jvm and pick up messages off a Kafka topic and translate them into a servlet request and pass it through tomcat and then when the response is complete then translate it into a Kafka message and put it onto