Re: CPU high usage, the reason org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run

2019-11-24 Thread Mladen Adamović
Hi Manna, I didn't copied full stack, it seems most threads are actually in TaskQueue.poll, see the full thread trace: Thread 1714: (state = BLOCKED) - sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information may be imprecise) - java.util.concurrent.locks.LockSupport.parkNanos(ja

Re: Tomcat 8.5.48: java.lang.StringIndexOutOfBoundsException

2019-11-24 Thread i...@flyingfischer.ch
Thanks for confirming and fixing. Markus Am 24.11.19 um 12:34 schrieb Mark Thomas: > Thanks for providing the additional information. > > Confirmed. This is a regression in the fix for: > https://bz.apache.org/bugzilla/show_bug.cgi?id=63815 > > Yon can work-around this by reverting the addition o

Re: CPU high usage, the reason org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run

2019-11-24 Thread Mladen Adamović
Tomcat 8.5.5 Java 1.8.0_101 OS: Ubuntu 4.4.0-38-generic On Sun, Nov 24, 2019 at 11:36 AM Mark Thomas wrote: > Tomcat version? > > Operating system? > > Java version? > > Mark > > > On 24/11/2019 09:57, Mladen Adamović wrote: > > I couldn't find the explanation of this in other threads, I've tri

Re: Tomcat 8.5.48: java.lang.StringIndexOutOfBoundsException

2019-11-24 Thread Mark Thomas
Thanks for providing the additional information. Confirmed. This is a regression in the fix for: https://bz.apache.org/bugzilla/show_bug.cgi?id=63815 Yon can work-around this by reverting the addition of " in daemon.sh made in this commit: https://markmail.org/message/ouaatfznmjbrva23 I'll get t

Re: CPU high usage, the reason org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run

2019-11-24 Thread M. Manna
I’m suspecting it’s the same issue that we found out for 8.5.45 where the commit didn’t get reverted out in Poll.java Or maybe not. Thanks, On Sun, 24 Nov 2019 at 10:36, Mark Thomas wrote: > Tomcat version? > > Operating system? > > Java version? > > Mark > > > On 24/11/2019 09:57, Mladen Adam

Re: CPU high usage, the reason org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run

2019-11-24 Thread Mark Thomas
Tomcat version? Operating system? Java version? Mark On 24/11/2019 09:57, Mladen Adamović wrote: > I couldn't find the explanation of this in other threads, I've tried to > search the archive. > > I have a high load average on a server and the reason for that is kernel > function futex_wait i

CPU high usage, the reason org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run

2019-11-24 Thread Mladen Adamović
I couldn't find the explanation of this in other threads, I've tried to search the archive. I have a high load average on a server and the reason for that is kernel function futex_wait invoked by java thread. By doing jstack, I see a lot of BLOCKED threads like these: Thread 1725: (state = BLOCKE

Re: Tomcat 8.5.48: java.lang.StringIndexOutOfBoundsException

2019-11-24 Thread i...@flyingfischer.ch
Starting Tomcat with "service tomcat start | stop | restart" pointing to: #!/bin/bash ### BEGIN INIT INFO # Provides:    tomcat # Required-Start:  $network # Required-Stop:   $network # Default-Start:   2 3 4 5 # Default-Stop:    0 1 6 # Short-Description: Start/Stop Tomcat server ### END INI