RE: When does Tomcat add and remove threads?

2024-03-13 Thread Harri Pesonen
Yes the standard JDK ThreadPoolExecutor behavior is bad. Here is a good thread describing how to fix ThreadPoolExecutor to behave how it should be. https://stackoverflow.com/questions/19528304/how-to-get-the-threadpoolexecutor-to-increase-threads-to-max-before-queueing Obviously Tomcat had

Re: When does Tomcat add and remove threads?

2024-03-12 Thread Rémy Maucherat
On Tue, Mar 12, 2024 at 5:55 PM wrote: > > All, > > > > -Original Message- > > From: Christopher Schultz > > Sent: Tuesday, March 12, 2024 8:31 AM > > To: users@tomcat.apache.org > > Subject: Re: When does Tomcat add and remove threads? > &g

RE: When does Tomcat add and remove threads?

2024-03-12 Thread John.E.Gregg
All, > -Original Message- > From: Christopher Schultz > Sent: Tuesday, March 12, 2024 8:31 AM > To: users@tomcat.apache.org > Subject: Re: When does Tomcat add and remove threads? > > John, > > On 3/11/24 18:14, john.e.gr...@wellsfargo.com.INVALID wrote: &g

Re: When does Tomcat add and remove threads?

2024-03-12 Thread Christopher Schultz
John, On 3/11/24 18:14, john.e.gr...@wellsfargo.com.INVALID wrote: From: Christopher Schultz Sent: Monday, March 11, 2024 5:09 PM > On 3/11/24 17:47, john.e.gr...@wellsfargo.com.INVALID wrote: I am using Tomcat 9.x. When does Tomcat add and remove threads from its internal thread p

Re: When does Tomcat add and remove threads?

2024-03-11 Thread John.E.Gregg
Chris, From: Christopher Schultz Sent: Monday, March 11, 2024 5:09 PM To: users@tomcat.apache.org Subject: Re: When does Tomcat add and remove threads? John, On 3/11/24 17:47, john.e.gr...@wellsfargo.com.INVALID wrote: > I am using Tomcat 9.x. > >

Re: When does Tomcat add and remove threads?

2024-03-11 Thread Christopher Schultz
John, On 3/11/24 17:47, john.e.gr...@wellsfargo.com.INVALID wrote: I am using Tomcat 9.x. When does Tomcat add and remove threads from its internal thread pool? I'm talking about the threads with names like http-nio-8080-exec-1. It appears the thread pool is Tomcat's own ThreadPoolExecutor

When does Tomcat add and remove threads?

2024-03-11 Thread John.E.Gregg
I am using Tomcat 9.x. When does Tomcat add and remove threads from its internal thread pool? I'm talking about the threads with names like http-nio-8080-exec-1. It appears the thread pool is Tomcat's own ThreadPoolExecutor but I don't see the exact behavior documented. I'm familiar

Re: Virtual Threads

2023-09-07 Thread Mark Thomas
On 07/09/2023 15:41, Christopher Schultz wrote: On 9/6/23 16:29, Mark Thomas wrote: There isn't much point using an executor with virtual threads. Okay then perche https://tomcat.apache.org/tomcat-11.0-doc/config/executor.html#Virtual_Thread_Implementation ? That is the internal

Re: Virtual Threads

2023-09-07 Thread Christopher Schultz
rtual" anywhere on that page. It is a Connector attribute, not an Executor attribute. There isn't much point using an executor with virtual threads. Okay then perche https://tomcat.apache.org/tomcat-11.0-doc/config/executor.html#Virtual_Thread_Implem

Re: Virtual Threads

2023-09-06 Thread Mark Thomas
Connector attribute, not an Executor attribute. There isn't much point using an executor with virtual threads. For those of you that are finding this topic interesting, I'll have a talk on this at the ASF conference, Community Over Code in Halifax. https://communityovercode.org/schedule-list/

Re: Virtual Threads

2023-09-06 Thread Christopher Schultz
Mark, On 9/6/23 03:29, Mark Thomas wrote: On 05/09/2023 22:02, Christopher Schultz wrote: Mark, On 9/5/23 15:55, Mark Thomas wrote: On 05/09/2023 20:38, Christopher Schultz wrote: All, I have some questions about Virtual Threads and their use within Tomcat. Note that only Tomcat 11

Re: Virtual Threads

2023-09-06 Thread Mark Thomas
On 05/09/2023 22:02, Christopher Schultz wrote: Mark, On 9/5/23 15:55, Mark Thomas wrote: On 05/09/2023 20:38, Christopher Schultz wrote: All, I have some questions about Virtual Threads and their use within Tomcat. Note that only Tomcat 11 currently has support for Virtual Threads when

Re: Virtual Threads

2023-09-05 Thread Christopher Schultz
Mark, On 9/5/23 15:55, Mark Thomas wrote: On 05/09/2023 20:38, Christopher Schultz wrote: All, I have some questions about Virtual Threads and their use within Tomcat. Note that only Tomcat 11 currently has support for Virtual Threads when running on a version 19 or later JVM. Not quite

Re: Virtual Threads

2023-09-05 Thread Mark Thomas
On 05/09/2023 20:38, Christopher Schultz wrote: All, I have some questions about Virtual Threads and their use within Tomcat. Note that only Tomcat 11 currently has support for Virtual Threads when running on a version 19 or later JVM. Not quite. All current versions support virtual threads

Virtual Threads

2023-09-05 Thread Christopher Schultz
All, I have some questions about Virtual Threads and their use within Tomcat. Note that only Tomcat 11 currently has support for Virtual Threads when running on a version 19 or later JVM. My (admittedly limited) understanding is that the use of Virtual Threads, specifically within Tomcat

Re: Pinned threads for HTTP2 using Virtual Threads on Tomcat 10.1.7

2023-07-28 Thread Mark Thomas
iel, How did you trigger the pinning? I'm running some basic tests with -Djdk.tracePinnedThreads=short and I'm not seeing any pinned threads reported. Mark On 07/07/2023 13:45, Daniel Andres Pelaez Lopez wrote: Mark, Thanks for letting me know. I will wait for the August release to test. Rega

Re: Pinned threads for HTTP2 using Virtual Threads on Tomcat 10.1.7

2023-07-28 Thread Rémy Maucherat
> > > > > > On 25/07/2023 10:19, Mark Thomas wrote: > >> Daniel, > >> > >> How did you trigger the pinning? I'm running some basic tests with > >> -Djdk.tracePinnedThreads=short and I'm not seeing any pinned threads > >> reported. &

Re: Pinned threads for HTTP2 using Virtual Threads on Tomcat 10.1.7

2023-07-27 Thread Mark Thomas
send I managed to trigger the issue. Mark On 25/07/2023 10:19, Mark Thomas wrote: Daniel, How did you trigger the pinning? I'm running some basic tests with -Djdk.tracePinnedThreads=short and I'm not seeing any pinned threads reported. Mark On 07/07/2023 13:45, Daniel Andres Pelaez Lopez

Re: Pinned threads for HTTP2 using Virtual Threads on Tomcat 10.1.7

2023-07-25 Thread Mark Thomas
Never mind. Pretty much as soon as I hit send I managed to trigger the issue. Mark On 25/07/2023 10:19, Mark Thomas wrote: Daniel, How did you trigger the pinning? I'm running some basic tests with -Djdk.tracePinnedThreads=short and I'm not seeing any pinned threads reported. Mark

Re: Pinned threads for HTTP2 using Virtual Threads on Tomcat 10.1.7

2023-07-25 Thread Mark Thomas
Daniel, How did you trigger the pinning? I'm running some basic tests with -Djdk.tracePinnedThreads=short and I'm not seeing any pinned threads reported. Mark On 07/07/2023 13:45, Daniel Andres Pelaez Lopez wrote: Mark, Thanks for letting me know. I will wait for the August release

Re: Pinned threads for HTTP2 using Virtual Threads on Tomcat 10.1.7

2023-07-07 Thread Daniel Andres Pelaez Lopez
Mark, Thanks for letting me know. I will wait for the August release to test. Regards. El jue, 6 jul 2023 a las 15:13, Mark Thomas () escribió: > > > 6 Jul 2023 20:09:01 Daniel Andres Pelaez Lopez : > > > I am aware Tomcat community did a great effort to move Tomat to &

Re: Pinned threads for HTTP2 using Virtual Threads on Tomcat 10.1.7

2023-07-06 Thread Mark Thomas
6 Jul 2023 20:09:01 Daniel Andres Pelaez Lopez : I am aware Tomcat community did a great effort to move Tomat to Virtual Threads friendly, but I am not sure why HTTP2 was not part of that effort? The plan was always to see where the bottlenecks were as folks start to experiment with Loom

Pinned threads for HTTP2 using Virtual Threads on Tomcat 10.1.7

2023-07-06 Thread Daniel Andres Pelaez Lopez
Hi community, I am working on a Spring Boot + Tomcat embedded application using Virtual Threads (https://openjdk.org/jeps/425), and everything looks great until we activate HTTP2. We started to see the following logs: Thread[#72,ForkJoinPool-1-worker-9,5,CarrierThreads

Re: tomcats starting with 200 threads

2022-09-21 Thread Christopher Schultz
: On Mon, Sep 19, 2022 at 7:45 PM Christopher Schultz < ch...@christopherschultz.net> wrote: Jon, On 9/19/22 10:46, Jonathan Yom-Tov wrote: Sometimes one of our production Tomcats will start with the maximum (200) number of t

Re: tomcats starting with 200 threads

2022-09-20 Thread Jonathan Yom-Tov
onathan Yom-Tov wrote: > > Sometimes one of our production Tomcats will start with the maximum (200) > > number of threads in the https pool. That is, it doesn't start with some > > minimum and works its way up to the maximum, it immediately starts with > the > > ma

Re: tomcats starting with 200 threads

2022-09-19 Thread Christopher Schultz
Jon, On 9/19/22 10:46, Jonathan Yom-Tov wrote: Sometimes one of our production Tomcats will start with the maximum (200) number of threads in the https pool. That is, it doesn't start with some minimum and works its way up to the maximum, it immediately starts with the maximum. There's

Re: tomcats starting with 200 threads

2022-09-19 Thread Mark Thomas
If the machine / VM / container you are running Tomcat on can't handle 200 threads you should be using a smaller value for maxThreads. Mark On 19/09/2022 15:46, Jonathan Yom-Tov wrote: hi, Sometimes one of our production Tomcats will start with the maximum (200) number of threads

tomcats starting with 200 threads

2022-09-19 Thread Jonathan Yom-Tov
hi, Sometimes one of our production Tomcats will start with the maximum (200) number of threads in the https pool. That is, it doesn't start with some minimum and works its way up to the maximum, it immediately starts with the maximum. There's no reason for it since most of the threads stay idle

Re: [OT] Running out of httpd worker threads (was: WELCOME to users@tomcat.apache.org)

2022-05-13 Thread Christopher Schultz
Sahil, On 5/11/22 13:56, Verma, Sahil wrote: In our production environment, ApacheTomcat services went down. We have checked the logs and found below error - [Thu May 05 10:34:51.441668 2022] [mpm_event:error] [pid 27440:tid 140464737793792] AH00484: server reached MaxRequestWorkers setting,

RE: clearReferencesThreads issues warning about 2 threads, spawned by JDK in printing components

2022-02-09 Thread jonmcalexander
Thomas > Sent: Monday, August 23, 2021 3:06 AM > To: users@tomcat.apache.org > Subject: Re: clearReferencesThreads issues warning about 2 threads, > spawned by JDK in printing components > > On 23/08/2021 08:10, Thomas Hoffmann (Speed4Trade GmbH) wrote: > > > > >

Re: clearReferencesThreads issues warning about 2 threads, spawned by JDK in printing components

2021-08-23 Thread Christopher Schultz
Mark, On 8/23/21 04:05, Mark Thomas wrote: On 23/08/2021 08:10, Thomas Hoffmann (Speed4Trade GmbH) wrote: Is there anything, the application can prevent this? Yes. Call Thread.setContextClassLoader(ClassLoader) before calling the code that creates those threads, passing the common class

AW: clearReferencesThreads issues warning about 2 threads, spawned by JDK in printing components

2021-08-23 Thread Thomas Hoffmann (Speed4Trade GmbH)
> Is there anything, the application can prevent this? Yes. Call Thread.setContextClassLoader(ClassLoader) before calling the code that creates those threads, passing the common class loader. Afterwards, reset the TCCL back to the web application class loader. > Should Tomcat mayb

Re: clearReferencesThreads issues warning about 2 threads, spawned by JDK in printing components

2021-08-23 Thread Mark Thomas
On 23/08/2021 08:10, Thomas Hoffmann (Speed4Trade GmbH) wrote: Is there anything, the application can prevent this? Yes. Call Thread.setContextClassLoader(ClassLoader) before calling the code that creates those threads, passing the common class loader. Afterwards, reset the TCCL back

clearReferencesThreads issues warning about 2 threads, spawned by JDK in printing components

2021-08-23 Thread Thomas Hoffmann (Speed4Trade GmbH)
, patts); This triggers the JDK to spawn two threads, which can be seen in the OpenJDK-Sources: https://github.com/AdoptOpenJDK/openjdk-jdk11/blob/master/src/java.desktop/windows/classes/sun/print/PrintServiceLookupProvider.java (see around line no 134 ff) --> Thread thr = new Thread(null,

Re: No Logger information when maximum threads reached. Tomcat 8

2020-11-10 Thread Mark Thomas
hes maximum thread limit. Our application is deployed in > tomcat. Maximum thread limit of tomcat is 200,  so If 200 threads are > reached, does tomcat provide any logger information? > >   > > We tried making multiple rest calls and reducing max threads to 2-3. We > fa

No Logger information when maximum threads reached. Tomcat 8

2020-11-10 Thread Aquib Khan
Hi, We have a usecase where we want that our application should indicate when it reaches maximum thread limit. Our application is deployed in tomcat. Maximum thread limit of tomcat is 200, so If 200 threads are reached, does tomcat provide any logger information? We tried making multiple

Re: Enable Logging to Print Max Threads

2020-10-28 Thread Christopher Schultz
make it to this list. You gotta use text to communicate. If it's not important to know the exact moment you hit your high-water mark, you could poll Tomcat via JMX to find out what the current max-threads is and the current active-threads. If you have active-threads=max-threads=max-max-threads

Enable Logging to Print Max Threads

2020-10-28 Thread Aquib Khan
Hi, We are using Tomcat Version : 8.5.53. OS Name:Linux OS Version: 3.10.0-1127.18.2.el7.x86_64 We have a requirement where we wanted a logger to get printed in Catalina.out when Tomcat reaches it's max thread limit. We reduced values of properties : minSpareThreads, maxThreads and

Re: Tomcat 9.0.29 - HTTPS threads age, max connections reached, Tomcat not responding on 8443

2020-08-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 8/27/20 18:14, David wrote: >> I used the http to 8080 in order to read the Tomcat webmanager >> stats. I originally had issues with the JVM being too small, >> running out of memory, CPU spiking, threads maxing out, a

Re: Tomcat 9.0.29 - HTTPS threads age, max connections reached, Tomcat not responding on 8443

2020-08-27 Thread David
>> On 8/27/20 10:48, David wrote: > >>>>>>> In the last two weeks I've had two occurrences where a > >>>>>>> single CentOS 7 production server hosting a public > >>>>>>> webpage has become unresponsive. The first time, all &g

Re: Tomcat 9.0.29 - HTTPS threads age, max connections reached, Tomcat not responding on 8443

2020-08-27 Thread Christopher Schultz
7, 2020 at 12:35 PM Christopher Schultz >>>> wrote: >>>>> >>>> David, >>>> >>>> On 8/27/20 10:48, David wrote: >>>>>>> In the last two weeks I've had two occurrences where a >>>>>>> single CentOS 7 pro

Re: Tomcat 9.0.29 - HTTPS threads age, max connections reached, Tomcat not responding on 8443

2020-08-27 Thread David
>> > > David, > > > > On 8/27/20 10:48, David wrote: > >>>> In the last two weeks I've had two occurrences where a > >>>> single CentOS 7 production server hosting a public webpage > >>>> has become unresponsive. The first time, a

Re: Tomcat 9.0.29 - HTTPS threads age, max connections reached, Tomcat not responding on 8443

2020-08-27 Thread Christopher Schultz
le >>> CentOS 7 production server hosting a public webpage has become >>> unresponsive. The first time, all 300 available >>> "https-jsse-nio-8443" threads were consumed, with the max age >>> being around 45minutes, and all in a "S" status. This

Re: Tomcat 9.0.29 - HTTPS threads age, max connections reached, Tomcat not responding on 8443

2020-08-27 Thread Christopher Schultz
gt;>> single CentOS 7 production server hosting a public webpage >>>> has become unresponsive. The first time, all 300 available >>>> "https-jsse-nio-8443" threads were consumed, with the max age >>>> being around 45minutes, and all in a "

Re: Tomcat 9.0.29 - HTTPS threads age, max connections reached, Tomcat not responding on 8443

2020-08-27 Thread Felix Schumacher
0 available > > "https-jsse-nio-8443" threads were consumed, with the max age being > > around 45minutes, and all in a "S" status. This time all 300 were > > consumed in "S" status with the oldest being around ~16minutes. A > > restart of Tomcat

Re: Tomcat 9.0.29 - HTTPS threads age, max connections reached, Tomcat not responding on 8443

2020-08-27 Thread Mark Thomas
On 27/08/2020 18:57, David wrote: > On Thu, Aug 27, 2020 at 12:35 PM Christopher Schultz > wrote: >>>> Is there a graceful way to script the termination of threads in >>>> case Tomcat isn't able to for whatever reason? > > Not really. What you can do is tak

Re: Tomcat 9.0.29 - HTTPS threads age, max connections reached, Tomcat not responding on 8443

2020-08-27 Thread David
sting a public webpage has become > > unresponsive. The first time, all 300 available > > "https-jsse-nio-8443" threads were consumed, with the max age being > > around 45minutes, and all in a "S" status. This time all 300 were > > consumed in "S" st

Re: Tomcat 9.0.29 - HTTPS threads age, max connections reached, Tomcat not responding on 8443

2020-08-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 8/27/20 10:48, David wrote: > In the last two weeks I've had two occurrences where a single > CentOS 7 production server hosting a public webpage has become > unresponsive. The first time, all 300 available > "https-jsse-

Tomcat 9.0.29 - HTTPS threads age, max connections reached, Tomcat not responding on 8443

2020-08-27 Thread David
In the last two weeks I've had two occurrences where a single CentOS 7 production server hosting a public webpage has become unresponsive. The first time, all 300 available "https-jsse-nio-8443" threads were consumed, with the max age being around 45minutes, and all in a "S&quo

Re: Websocket semaphore lock on close() blocks all tomcat threads

2020-07-14 Thread Mark Thomas
On 14/07/2020 21:08, Mark Thomas wrote: > On 14/07/2020 20:57, Sridhar Rao wrote: >> >> We notice a behavior with tomcat where it becomes unresponsive and all >> http threads go into a timed wait state and the node becomes unresponsive. >> >> Tomcat

Re: Websocket semaphore lock on close() blocks all tomcat threads

2020-07-14 Thread Mark Thomas
On 14/07/2020 20:57, Sridhar Rao wrote: > > We notice a behavior with tomcat where it becomes unresponsive and all > http threads go into a timed wait state and the node becomes unresponsive. > > Tomcat Version: 8.5.47 > Could this be a tomcat defect? Possibly. Let me ta

Re: Some questions regarding the TLS1.2 port 443 continuously communicating and too many open threads

2020-04-30 Thread Christopher Schultz
ackets in between that is marked as RED in wireshark. > > Okay, so far you have told us: > > 1. You are using Tomcat 8.5.29 >> [Raghav] yes correct. > 2. You have an with 450 threads in it >> [Raghav] Executor has 450 threads. > > 3. You see "lots of threads" &

Re: Some questions regarding the TLS1.2 port 443 continuously communicating and too many open threads

2020-04-30 Thread Ragavendhiran Bhiman (rabhiman)
ing Tomcat 8.5.29 [Raghav] yes correct. 2. You have an with 450 threads in it [Raghav] Executor has 450 threads. 3. You see "lots of threads" [Raghav] Yes above 450 threads or all the. 450 threads are alive. 4. You are seeing lots of RST packets. [Raghav]I can provide one sna

Re: Some questions regarding the TLS1.2 port 443 continuously communicating and too many open threads

2020-04-29 Thread Christopher Schultz
ST packets > in between that is marked as RED in wireshark. Okay, so far you have told us: 1. You are using Tomcat 8.5.29 2. You have an with 450 threads in it 3. You see "lots of threads" 4. You are seeing lots of RST packets We can't help you without more details. Pretend we are

Re: Some questions regarding the TLS1.2 port 443 continuously communicating and too many open threads

2020-04-29 Thread Ragavendhiran Bhiman (rabhiman)
iman (rabhiman) wrote: > Yes you are correct apache tomcat version 8.5.29 being used. > > On 29/04/20, 7:22 PM, "Ragavendhiran Bhiman (rabhiman)" wrote: > > Hi Mark, > > We have configured 450 threads for port number 443 with the

Re: Some questions regarding the TLS1.2 port 443 continuously communicating and too many open threads

2020-04-29 Thread Mark Thomas
On 29/04/2020 14:53, Ragavendhiran Bhiman (rabhiman) wrote: > Yes you are correct apache tomcat version 8.5.29 being used. > > On 29/04/20, 7:22 PM, "Ragavendhiran Bhiman (rabhiman)" > wrote: > > Hi Mark, > > We have configured 450 threads for

Re: Some questions regarding the TLS1.2 port 443 continuously communicating and too many open threads

2020-04-29 Thread Ragavendhiran Bhiman (rabhiman)
Yes you are correct apache tomcat version 8.5.29 being used. On 29/04/20, 7:22 PM, "Ragavendhiran Bhiman (rabhiman)" wrote: Hi Mark, We have configured 450 threads for port number 443 with the following executer I could see 450 threads open for

Re: Some questions regarding the TLS1.2 port 443 continuously communicating and too many open threads

2020-04-29 Thread Ragavendhiran Bhiman (rabhiman)
Hi Mark, We have configured 450 threads for port number 443 with the following executer I could see 450 threads open for servicing the clients in one specific setup only what could be the reason? Thanks a lot. Regards, Raghav On 29/04/20, 7:18

Re: Some questions regarding the TLS1.2 port 443 continuously communicating and too many open threads

2020-04-29 Thread Mark Thomas
dor and version being used as well as OS. > Hi, > > I am seeing too many open threads to port number 443 with TLSv1.2, what could > be the primary reason for the same? Open threads? That doesn't make sense. Do you mean open ports, threads (idle, active, both) or something else? How a

Re: Some questions regarding the TLS1.2 port 443 continuously communicating and too many open threads

2020-04-29 Thread Ragavendhiran Bhiman (rabhiman)
Apache version 8.5.29 From: "Ragavendhiran Bhiman (rabhiman)" Date: Wednesday, 29 April 2020 at 6:50 PM To: "users-ow...@tomcat.apache.org" , "users@tomcat.apache.org" Subject: Re: Some questions regarding the TLS1.2 port 443 continuously communicating and too ma

Re: Some questions regarding the TLS1.2 port 443 continuously communicating and too many open threads

2020-04-29 Thread Ragavendhiran Bhiman (rabhiman)
Adding tomcat users as well. From: "Ragavendhiran Bhiman (rabhiman)" Date: Wednesday, 29 April 2020 at 6:45 PM To: "users-ow...@tomcat.apache.org" Subject: Some questions regarding the TLS1.2 port 443 continuously communicating and too many open threads Hi, I am seeing t

Re: manager app, Complete Server Status, not shown list of NIO threads

2018-12-07 Thread Jan Vávra
1.8.0_192-b12, Windows Server 2012 R2 and at Complete Server Status page I can see list of all http-nio threads and I can see a header of ajp-nio threads. But there is displayed only a label Max threads: and nothing more. In the localhost.log is an exception: 04-Dec-2018 10:31:38.109 SEVERE [96

Re: manager app, Complete Server Status, not shown list of NIO threads

2018-12-05 Thread Christopher Schultz
>>>> Windows Server 2012 R2 and at Complete Server Status page I >>>> can see list of all http-nio threads and I can see a header >>>> of ajp-nio threads. But there is displayed only a label Max >>>> threads: and nothing more. >>>&g

Re: manager app, Complete Server Status, not shown list of NIO threads

2018-12-05 Thread Jan Vávra
threads and I can see a header of ajp-nio threads. But there is displayed only a label Max threads: and nothing more. In the localhost.log is an exception: 04-Dec-2018 10:31:38.109 SEVERE [96] org.apache.catalina.core.StandardHostValve.invoke Exception Processing null

Re: manager app, Complete Server Status, not shown list of NIO threads

2018-12-04 Thread Mark Thomas
On 04/12/2018 15:10, Jan Vávra wrote: > Hello, >  I'm using Apache Tomcat/8.5.35, jvm 1.8.0_192-b12, Windows Server 2012 > R2 and at Complete Server Status page I can see list of all http-nio > threads and I can see a header of ajp-nio threads. But there is > displayed only a la

Re: manager app, Complete Server Status, not shown list of NIO threads

2018-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jan, On 12/4/18 10:10, Jan Vávra wrote: > Hello, I'm using Apache Tomcat/8.5.35, jvm 1.8.0_192-b12, Windows > Server 2012 R2 and at Complete Server Status page I can see list of > all http-nio threads and I can see a header of ajp-ni

manager app, Complete Server Status, not shown list of NIO threads

2018-12-04 Thread Jan Vávra
Hello,  I'm using Apache Tomcat/8.5.35, jvm 1.8.0_192-b12, Windows Server 2012 R2 and at Complete Server Status page I can see list of all http-nio threads and I can see a header of ajp-nio threads. But there is displayed only a label Max threads: and nothing more. In the localhost.log

Re: StuckThreadDetectionValve with threads on IO

2018-10-04 Thread Mark Thomas
On 04/10/18 01:08, Behrooz Nobakht wrote: > [1] uses a time based threshold to mark a request thread as "stuck" above > the configured threshold. > > This is definitely useful, but maybe a thread is busy transferring a large > request (IO). This could become > a wrong conclusion for the thread to

StuckThreadDetectionValve with threads on IO

2018-10-03 Thread Behrooz Nobakht
[1] uses a time based threshold to mark a request thread as "stuck" above the configured threshold. This is definitely useful, but maybe a thread is busy transferring a large request (IO). This could become a wrong conclusion for the thread to be marked as stuck. A relevant contextual example is

Re: Servlet Threads Changing Instance Data

2018-08-15 Thread Christopher Schultz
service calls >>> to initialize. I was making them sequentially with no issues. >>> I then changed to give them all separate threads so they could >>> load asynchronously. Then the bottom fell out. I started >>> getting empty responses and some responses with resul

Re: Servlet Threads Changing Instance Data

2018-08-15 Thread Michael Osipov
all separate threads so they could load asynchronously.  Then the bottom fell out.  I started getting empty responses and some responses with results of three or four of the calls concatenated.  I traced the problem from the app back through apache through mod_jk and found the culprit to be Tomcat

RE: Servlet Threads Changing Instance Data

2018-08-15 Thread Caldarale, Charles R
> From: Jerry Malcolm [mailto:techst...@malcolms.com] > Subject: Re: Servlet Threads Changing Instance Data > I'm not sure what you mean by typically there is only one servlet > object.  There's one class.  But a new instance is created on each > request, right? No - there's on

Re: Servlet Threads Changing Instance Data

2018-08-15 Thread Jerry Malcolm
On 8/15/2018 1:50 PM, Olaf Kock wrote: Jerry, On 15.08.2018 18:14, Jerry Malcolm wrote: I have a mobile app that issues several http web service calls to initialize.  I was making them sequentially with no issues.  I then changed to give them all separate threads so they could load

Re: Servlet Threads Changing Instance Data

2018-08-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jerry, On 8/15/18 12:14 PM, Jerry Malcolm wrote: > I have a mobile app that issues several http web service calls to > initialize. I was making them sequentially with no issues. I > then changed to give them all separate threads so t

Re: Servlet Threads Changing Instance Data

2018-08-15 Thread Olaf Kock
Jerry, On 15.08.2018 18:14, Jerry Malcolm wrote: I have a mobile app that issues several http web service calls to initialize.  I was making them sequentially with no issues.  I then changed to give them all separate threads so they could load asynchronously.  Then the bottom fell out.  I

Servlet Threads Changing Instance Data

2018-08-15 Thread Jerry Malcolm
I have a mobile app that issues several http web service calls to initialize.  I was making them sequentially with no issues.  I then changed to give them all separate threads so they could load asynchronously.  Then the bottom fell out.  I started getting empty responses and some responses

Re: Which connector defines "http-nio-auto-1-exec-*" threads?

2017-11-22 Thread Jong Kim
n] org.apache.coyote.AbstractProtocol.start > Starting ProtocolHandler ["http-nio-auto-1-46276"] > 17-Nov-2017 19:13:21.796 INFO [main] org.apache.coyote.AbstractProtocol.start > Starting ProtocolHandler ["http-nio2-8443"] > 17-Nov-2017 19:13:21.797 INFO [main] o

Re: Which connector defines "http-nio-auto-1-exec-*" threads?

2017-11-22 Thread Rémy Maucherat
ctProtocol.start > Starting ProtocolHandler ["http-nio-auto-1-46276"] > 17-Nov-2017 19:13:21.796 INFO [main] org.apache.coyote.AbstractProtocol.start > Starting ProtocolHandler ["http-nio2-8443"] > 17-Nov-2017 19:13:21.797 INFO [main] org.apache.coyote.AbstractProtoco

Which connector defines "http-nio-auto-1-exec-*" threads?

2017-11-22 Thread Jong Kim
I look at the connector thread pool, it creates a set of threads with this name pattern - "http-nio-auto-1-exec-" - in addition to the two thread pools used by NIO2 and AJP connectors. So, the question - What is this so-called "auto" connector for? And why is Tomcat creatin

Re: Per EndPoint Threads???

2017-08-15 Thread Owen Rubel
HTTP connection (or TCP; the application > > protocol isn't terribly relevant), then you are limited by the > > following: > > > > 1. Network bandwidth 2. Available threads (to service a particular > > request) 3. Hardware resources on the server > > (CPU/me

Re: Per EndPoint Threads???

2017-08-15 Thread Christopher Schultz
e (whatever it may >>>> be). > > If the channel is an HTTP connection (or TCP; the application > protocol isn't terribly relevant), then you are limited by the > following: > > 1. Network bandwidth 2. Available threads (to service a particular > request) 3. Hardw

Re: Per EndPoint Threads???

2017-08-13 Thread Owen Rubel
lication protocol > isn't terribly relevant), then you are limited by the following: > > 1. Network bandwidth > 2. Available threads (to service a particular request) > 3. Hardware resources on the server (CPU/memory/disk/etc.) > > Let's ignore 1 and 3 for now, since you are prim

Re: Per EndPoint Threads???

2017-08-13 Thread Christopher Schultz
e CHANNEL for > communicating the resource (whatever it may be). If the channel is an HTTP connection (or TCP; the application protocol isn't terribly relevant), then you are limited by the following: 1. Network bandwidth 2. Available threads (to service a particular request) 3. Hardware resources on the

Re: Per EndPoint Threads???

2017-08-12 Thread Owen Rubel
> On 12/08/17 06:00, Christopher Schultz wrote: > >>>>>> Owen, > >>>>>> > >>>>>> Please do not top-post. I have re-ordered your post to > >>>>>> be bottom-post. > >>>>>> > >>>>

Re: Per EndPoint Threads???

2017-08-12 Thread Christopher Schultz
dered your post to >>>>>> be bottom-post. >>>>>> >>>>>> On 8/11/17 10:12 PM, Owen Rubel wrote: >>>>>>> On Fri, Aug 11, 2017 at 5:58 PM, >>>>>>> <christop...@baus.net> wrote: >>>>>> >

Re: Per EndPoint Threads???

2017-08-12 Thread Owen Rubel
17 10:12 PM, Owen Rubel wrote: > >>>> On Fri, Aug 11, 2017 at 5:58 PM, <christop...@baus.net> > >>>> wrote: > >>> > >>>>>> Hi All, > >>>>>> > >>>>>> I'm looking for a way (or a tool) in Tomcat to associa

Re: Per EndPoint Threads???

2017-08-12 Thread Owen Rubel
17 10:12 PM, Owen Rubel wrote: > >>>> On Fri, Aug 11, 2017 at 5:58 PM, <christop...@baus.net> > >>>> wrote: > >>> > >>>>>> Hi All, > >>>>>> > >>>>>> I'm looking for a way (or a tool) in Tomcat to associa

Re: Per EndPoint Threads???

2017-08-12 Thread Christopher Schultz
ase do not top-post. I have re-ordered your post to be >>> bottom-post. >>> >>> On 8/11/17 10:12 PM, Owen Rubel wrote: >>>> On Fri, Aug 11, 2017 at 5:58 PM, <christop...@baus.net> >>>> wrote: >>> >>>>>> Hi All, >>&

Re: Per EndPoint Threads???

2017-08-12 Thread Owen Rubel
;>> Hi All, > >>>> > >>>> I'm looking for a way (or a tool) in Tomcat to associate > >>>> threads with endpoints. > >>> > >>> It isn't clear to me why this would be necessary. Threads should > >>> be allocated on demand

Re: Per EndPoint Threads???

2017-08-12 Thread Mark Thomas
>>>> >>>> I'm looking for a way (or a tool) in Tomcat to associate >>>> threads with endpoints. >>> >>> It isn't clear to me why this would be necessary. Threads should >>> be allocated on demand to individual requests. If one route

Re: Per EndPoint Threads???

2017-08-11 Thread Christopher Schultz
t;> I'm looking for a way (or a tool) in Tomcat to associate >>> threads with endpoints. >> >> It isn't clear to me why this would be necessary. Threads should >> be allocated on demand to individual requests. If one route sees >> more traffic, then it should aut

Re: Per EndPoint Threads???

2017-08-11 Thread Owen Rubel
Absolutely but it could ramp up more threads as needed. I base the logic on neuron and neuralTransmitters. When neurons talk to each other, they send back neural transmitters to enforce that pathway. If we could do the same through threads by adding additional threads for endpoints that receive

Re: Per EndPoint Threads???

2017-08-11 Thread christopher
> Hi All, > > I'm looking for a way (or a tool) in Tomcat to associate threads with > endpoints. It isn't clear to me why this would be necessary. Threads should be allocated on demand to individual requests. If one route sees more traffic, then it should automatically be allocated

Per EndPoint Threads???

2017-08-11 Thread Owen Rubel
Hi All, I'm looking for a way (or a tool) in Tomcat to associate threads with endpoints. The reason being is that on a whole, threads are used not by the whole system but distributed dynamically to specific pieces. Tomcat repeats this process over and over but never stores this knowledge

Re: able to see more than 10 threads, maxThread configuration to 10

2017-05-04 Thread Mark Thomas
On 04/05/17 16:42, Jain Shailu wrote: > We have updated the maxThread configuration to 10 at below place in > server.xml of DEV environment. However I was able to see more than 10 > threads. I have also attached the server.xml > > > I need your help to understand if I am doi

able to see more than 10 threads, maxThread configuration to 10

2017-05-04 Thread Jain Shailu
We have updated the maxThread configuration to 10 at below place in server.xml of DEV environment. However I was able to see more than 10 threads. I have also attached the server.xml I need your help to understand if I am doing something wrong or it is an expected behaviour? A "Conn

Re: what could this mean if there are many many http threads in this state?

2017-04-11 Thread Mark Thomas
On 11/04/17 13:35, Johan Compagner wrote: > Thread: http-443-72, state: RUNNABLE, total cpu time: 5583984.375ms, total > user time: 5451312.5ms > java.net.SocketInputStream.socketRead0(Native Method) > java.net.SocketInputStream.socketRead(Unknown Source) >

what could this mean if there are many many http threads in this state?

2017-04-11 Thread Johan Compagner
Thread: http-443-72, state: RUNNABLE, total cpu time: 5583984.375ms, total user time: 5451312.5ms java.net.SocketInputStream.socketRead0(Native Method) java.net.SocketInputStream.socketRead(Unknown Source) java.net.SocketInputStream.read(Unknown Source)

Re: [OT] Tomcat listener not coming up - no stuck threads

2016-12-29 Thread John D. Ament
1b2d4e0fea7cb0f7a9d3 > c> > >>>>> > >>>>>> > > > > > d1e750b48498ff2 > >>>> > >>>> That was pretty much what I was thinking. > > > > > >> If you want it, let me know. I can provide

Re: [OT] Tomcat listener not coming up - no stuck threads

2016-12-15 Thread Christopher Schultz
> https://github.com/johnament/tomcat85/commit/a0281b2d4e0fea7cb0f7 a9d > >>>>>> 3c > <https://github.com/johnament/tomcat85/commit/a0281b2d4e0fea7cb0f7a9d3 c> >>>>> >>>>>> > > d1e750b48498ff2 >>>> >>>>

  1   2   3   4   5   6   7   8   9   10   >