Re: Not running on Jetty, JSR-356 support unavailable

2019-11-26 Thread Naveen Kumar
Hi Chris, I am running tomcat and keeping the jetty-all-9.4.19.v20190610-uber.jar inside tomcat\lib. I do not need websockets functionality. But I'm not getting a way to disable it so that it can work fine with tomcat. Thanks Naveen On Mon, Nov 25, 2019 at 9:37 PM Christopher Schultz < ch...@chr

Re: Apache Tomcat 8.5.49 - StackOverflowError when getting static resources

2019-11-26 Thread jan.atos
"On 26/11/2019 16:34, Mark Thomas wrote: >> Jan, >> >> On 11/26/19 09:20, jan.a...@seznam.cz wrote: >>> with update of Tomcat to version 8.5.49 we observed issue in our >>> application when accessing login page. >> >> Sounds suspiciously familiar: >> https://markmail.org/message/7xfg5x7mllrki3hd >

Re: Error after upgrading to Tomcat 9.0.29

2019-11-26 Thread Juri Berlanda
Hi, I never built Tomcat from source, but I guess there is a first time for everything :-) I'm out of office tomorrow, but I will give it a shot on Thursday and let you know how it went. Where can I find the source with the fix? Cheers, Juri On 11/26/19 7:01 PM, Mark Thomas wrote: On 26/

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

2019-11-26 Thread Mladen Adamović
Hi Chris, On Tue, Nov 26, 2019 at 7:51 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > You never actually said what your definition of "high CPU usage" was. > Are you looking at load-average? %-CPU usage from "top"? > I'm sorry if I wasn't clear enough, I meant high system load (

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

2019-11-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mladen, On 11/26/19 11:13, Mladen Adamović wrote: > I dig into Tomcat source code and from what I've seen this is what > happens: > > Tomcat "worker thread", tries the polls the work and if it doesn't > succeed it invokes sun.misc.Unsafe.park (that

Re: Error after upgrading to Tomcat 9.0.29

2019-11-26 Thread Mark Thomas
On 26/11/2019 16:35, Mark Thomas wrote: > On 25/11/2019 19:17, Juri Berlanda wrote: >> Hi all, >> >> I post my Stacktrace again, as I mistakenly previously only sent it to >> Rémy Maucherat. >> >> I'll try to make it as short as possible: > > Maybe a cariation of: > https://bz.apache.org/bugzilla/

Re: Apache Tomcat 8.5.49 - StackOverflowError when getting static resources

2019-11-26 Thread Mark Thomas
On 26/11/2019 16:34, Mark Thomas wrote: >> Jan, >> >> On 11/26/19 09:20, jan.a...@seznam.cz wrote: >>> with update of Tomcat to version 8.5.49 we observed issue in our >>> application when accessing login page. >> >> Sounds suspiciously familiar: >> https://markmail.org/message/7xfg5x7mllrki3hd >>

Re: Could not find worker with name 'ajp13_worker'

2019-11-26 Thread Roberto Bottoni
Hi Chris, the file workers.properties is the one i found after the libapache2-mod-jk installation (with aptitude)! I changed only the 2 lines with workers.tomcat_home and workers.java_home (that you said, they do nothing)... the directive : JkMount /* ajp13_worker is present in the VirtualHos

Re: Could not find worker with name 'ajp13_worker'

2019-11-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Roberto, On 11/26/19 09:58, Roberto Bottoni wrote: > I have a Debian 10 server with Apache 2 + Tomcat 9. I can't run > JSF pages due to an internal server error. I use OpenJDK v. 11, > also use the Apache Tomcat Native library [1.2.23] > (tomcat-nat

Re: Error after upgrading to Tomcat 9.0.29

2019-11-26 Thread Mark Thomas
On 25/11/2019 19:17, Juri Berlanda wrote: > Hi all, > > I post my Stacktrace again, as I mistakenly previously only sent it to > Rémy Maucherat. > > I'll try to make it as short as possible: Maybe a cariation of: https://bz.apache.org/bugzilla/show_bug.cgi?id=63964 ? Mark -

Re: Apache Tomcat 8.5.49 - StackOverflowError when getting static resources

2019-11-26 Thread Mark Thomas
> Jan, > > On 11/26/19 09:20, jan.a...@seznam.cz wrote: >> with update of Tomcat to version 8.5.49 we observed issue in our >> application when accessing login page. > > Sounds suspiciously familiar: > https://markmail.org/message/7xfg5x7mllrki3hd > > This was for a recent Tomcat 9.0 release, no

Re: Tomcat 8.5.48: java.lang.StringIndexOutOfBoundsException

2019-11-26 Thread Mark Thomas
On 24/11/2019 13:50, i...@flyingfischer.ch wrote: > Thanks for confirming and fixing. I have committed the fix. Can you build from source and test this? If it is easier for you I can provide binaries. Thanks, Mark > > Markus > > Am 24.11.19 um 12:34 schrieb Mark Thomas: >> Thanks for providi

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

2019-11-26 Thread Mladen Adamović
I dig into Tomcat source code and from what I've seen this is what happens: Tomcat "worker thread", tries the polls the work and if it doesn't succeed it invokes sun.misc.Unsafe.park (that's waiting which can be interrupted by another thread), internally in Linux goes through kernel function FUTEX

Re: Apache Tomcat 8.5.49 - StackOverflowError when getting static resources

2019-11-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jan, On 11/26/19 09:20, jan.a...@seznam.cz wrote: > with update of Tomcat to version 8.5.49 we observed issue in our > application when accessing login page. Sounds suspiciously familiar: https://markmail.org/message/7xfg5x7mllrki3hd This was for

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

2019-11-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mladen, On 11/25/19 14:36, Mladen Adamović wrote: > On Mon, Nov 25, 2019 at 5:57 PM Christopher Schultz < > ch...@christopherschultz.net> wrote: > >>> We certainly want to be able to serve 1 hits per second >>> (!), while some connections migh

Could not find worker with name 'ajp13_worker'

2019-11-26 Thread Roberto Bottoni
Hello, I have a Debian 10 server with Apache 2 + Tomcat 9. I can't run JSF pages due to an internal server error. I use OpenJDK v. 11, also use the Apache Tomcat Native library [1.2.23] (tomcat-native-1.2.23-src.tar.gz) using the APR version [1.7.0] (apr-1.7.0.tar.gz). Tomcat starts regularly

Apache Tomcat 8.5.49 - StackOverflowError when getting static resources

2019-11-26 Thread jan.atos
Hello, with update of Tomcat to version 8.5.49 we observed issue in our application when accessing login page.  Application log contains StackOverflowError. There is recursive call of CompositionHandler.apply() method. It seems that issue is connected with resource caching because when I s