Re: Regarding StuckThreadDetectionValve

2015-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Yogesh, On 10/6/15 2:06 AM, Yogesh Patel wrote: > I just wanted to know in tomcat is there any way to detect such > long running thread and kill them. There is no safe way to kill a thread. All kinds of bad things can happe n. Are you sure the thr

Re: Regarding StuckThreadDetectionValve

2015-10-05 Thread Yogesh Patel
Thanks Thomas, I just wanted to know in tomcat is there any way to detect such long running thread and kill them. On 6 October 2015 at 01:07, Mark Thomas wrote: > On 05/10/2015 16:00, Yogesh Patel wrote: > > Other 199 process are also for /solr430/update?wt=xml&version=2.2 > HTTP/1.

Re: Regarding StuckThreadDetectionValve

2015-10-05 Thread Mark Thomas
On 05/10/2015 16:00, Yogesh Patel wrote: > Other 199 process are also for /solr430/update?wt=xml&version=2.2 HTTP/1.1 > only That is surprising. That could be a Solr issue or a Tomcat issue. Best to take three thread dumps each 10 to 30 seconds apart and then take a look to see what is holding up

Re: Regarding StuckThreadDetectionValve

2015-10-05 Thread Yogesh Patel
Other 199 process are also for /solr430/update?wt=xml&version=2.2 HTTP/1.1 only On 5 October 2015 at 20:18, Mark Thomas wrote: > On 05/10/2015 12:58, Yogesh Patel wrote: > > Hi Mark Thomas, > > > > in image it shows Tomcat Manager screen: > > Under "ajp-apr-10003" Section in tomcat manager: > >

Re: Regarding StuckThreadDetectionValve

2015-10-05 Thread Mark Thomas
On 05/10/2015 12:58, Yogesh Patel wrote: > Hi Mark Thomas, > > in image it shows Tomcat Manager screen: > Under "ajp-apr-10003" Section in tomcat manager: > Max threads: 200 Current thread count:200 Current thread busy :200 Keeped > alive socket count :0 > > *Stage Time BSentBR

Re: Regarding StuckThreadDetectionValve

2015-10-05 Thread Yogesh Patel
Hi Mark Thomas, in image it shows Tomcat Manager screen: Under "ajp-apr-10003" Section in tomcat manager: Max threads: 200 Current thread count:200 Current thread busy :200 Keeped alive socket count :0 *Stage Time BSentBRecv Client VHost Request* S 28

Re: Regarding StuckThreadDetectionValve

2015-10-05 Thread Yogesh Patel
Hi , let me try sending image using attachment , if still its not viewable then i will find another way. On 5 October 2015 at 16:06, Mark Thomas wrote: > On 05/10/2015 11:28, Yogesh Patel wrote: > > Hi Thomas , > > Please see this image ...have a look at Time column > > The lis

Re: Regarding StuckThreadDetectionValve

2015-10-05 Thread Mark Thomas
On 05/10/2015 11:28, Yogesh Patel wrote: > Hi Thomas , > Please see this image ...have a look at Time column The list strips images. If you really want us to look at the image (not that I think it will be remotely relevant) upload it somewhere and post the URL (make sure it is p

Re: Regarding StuckThreadDetectionValve

2015-10-05 Thread Yogesh Patel
Hi Thomas , Please see this image ...have a look at Time column ​ On 5 October 2015 at 14:50, Mark Thomas wrote: > On 05/10/2015 10:09, Yogesh Patel wrote: > > Hi Thomas, > > > > Connector configuration is like : > > > > That means you are using the BIO AJP connector. > > Yo

Re: Regarding StuckThreadDetectionValve

2015-10-05 Thread Mark Thomas
On 05/10/2015 10:09, Yogesh Patel wrote: > Hi Thomas, > > Connector configuration is like : > That means you are using the BIO AJP connector. You don't have a problem with long running requests. You have a problem with thread starvation. AJP uses persistent connections. BIO requires one thre

Re: Regarding StuckThreadDetectionValve

2015-10-05 Thread Yogesh Patel
Hi Thomas, Connector configuration is like : On 5 October 2015 at 14:17, Mark Thomas wrote: > On 05/10/2015 09:07, Yogesh Patel wrote: > > Thanks Mark Thomas , > > > >Our application is access by Apache TO Tomcat using AJP Connector. > > OK. That answers one of the questions I asked. Howev

Re: Regarding StuckThreadDetectionValve

2015-10-05 Thread Mark Thomas
On 05/10/2015 09:07, Yogesh Patel wrote: > Thanks Mark Thomas , > >Our application is access by Apache TO Tomcat using AJP Connector. OK. That answers one of the questions I asked. However, you haven't provided the connector configuration. > Problem : > Our application was mostly han

Re: Regarding StuckThreadDetectionValve

2015-10-05 Thread Yogesh Patel
Thanks Mark Thomas , Our application is access by Apache TO Tomcat using AJP Connector. Problem : Our application was mostly hanged,after looking at tomcat manager it shown there are so many long running threads shown. We want to recognize why so many threads are running since long

Re: Regarding StuckThreadDetectionValve

2015-10-05 Thread Mark Thomas
On 05/10/2015 07:54, Yogesh Patel wrote: > We are facing issues with long running thread in tomcat . we are > using Tomcat-7.0.47.Tomcat manager shows Current busy threads : 200, > application gets stucked due to these long running threads. What makes you think you have issues with long r

Regarding StuckThreadDetectionValve

2015-10-04 Thread Yogesh Patel
We are facing issues with long running thread in tomcat . we are using Tomcat-7.0.47.Tomcat manager shows Current busy threads : 200, application gets stucked due to these long running threads. We implemented StuckThreadDetectionValve in server.xml( ), but it could not help out.