Re: Problem with maximum threads

2009-04-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anand, On 4/22/2009 1:35 AM, connossieur wrote: > This is my Server.xml Note you have two connectors defined: >maxThreads="70" minSpareThreads="20"/> > port="80" protocol="HTTP/1.1" > connectionT

RE: Problem with maximum threads

2009-04-22 Thread Caldarale, Charles R
> From: connossieur [mailto:anand.b...@aricent.com] > Subject: Re: Problem with maximum threads > > I realize that my Server.xml is not being used by the Tomcat engine. I hope you also realize the file name must be server.xml, not Server.xml (case matters). - Chuck THIS COMMU

RE: Problem with maximum threads

2009-04-22 Thread Martin Gainty
t obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Wed, 22 Apr 2009 12:15:22 +0100 > From: p...@pidster.com > To: users@tomcat.apache.org > Subject: Re: Problem

Re: Problem with maximum threads

2009-04-22 Thread Pid
why not start by creating a backup copy of your server.xml, and then removing all of the commented out config. it'll be easier to see what's going on that way... p connossieur wrote: > I realize that my Server.xml is not being used by the Tomcat engine. I mean > the Connector part. > Should I

Re: Problem with maximum threads

2009-04-22 Thread connossieur
) >> or >> sysctl -w kern.maxproc=1 (or more?) >> >> (My kern.maxproc is currently set to 532 -- what a strange number -- >> while kern.maxprocperuid is currently 266). >> >> You can also set your defaults in /etc/sysctl.conf: >> >> kern.maxproc=1 &g

Re: Problem with maximum threads

2009-04-21 Thread connossieur
t; ------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Problem-with-max

Re: Problem with maximum threads

2009-04-21 Thread connossieur
t; ------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Problem-with-max

Re: Problem with maximum threads

2009-04-21 Thread connossieur
t; ------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Problem-with-max

Re: Problem with maximum threads

2009-04-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stephen, On 4/21/2009 5:35 PM, Stephen Caine wrote: > This is the number of threads Tomcat will handle before it errors with > 'max threads reached. This is on OS X, 64 bit memory. The heap size is > 2 gigs. > > If you know how to increase this num

RE: Problem with maximum threads

2009-04-21 Thread Caldarale, Charles R
> From: Stephen Caine [mailto:step...@commongrnd.com] > Subject: Re: Problem with maximum threads > > This is the number of threads Tomcat will handle before > it errors with 'max threads reached. This is on OS X, 64 > bit memory. The heap size is 2 gigs. Looks like the

Re: Problem with maximum threads

2009-04-21 Thread Stephen Caine
X in previous posts to this list. Stephen On Apr 21, 2009, at 9:38 AM, Caldarale, Charles R wrote: From: Stephen Caine [mailto:step...@commongrnd.com] Subject: Re: Problem with maximum threads However, the maximum number of threads Tomcat will handle is somewhere about 2400. I'm curious:

RE: Problem with maximum threads

2009-04-21 Thread Caldarale, Charles R
> From: connossieur [mailto:anand.b...@aricent.com] > Subject: RE: Problem with maximum threads > > 1000 threads come up by themselves. You're not answering the questions. To repeat: 1) Do you really have 1,000 threads in a runnable or waiting state, all with the names htt

Re: [OT] Problem with maximum threads

2009-04-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 4/21/2009 10:59 AM, Peter Crowther wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Also, please post a full thread >> dump. I want to see 1000 complete stack traces, baby. > > Mmm, that's a good few kilos of car

RE: Problem with maximum threads

2009-04-21 Thread Peter Crowther
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Also, please post a full thread > dump. I want to see 1000 complete stack traces, baby. Mmm, that's a good few kilos of carbon to shift the bits around the mailing list subscribers ;-). Any chance of putting the thread dump on a

Re: Problem with maximum threads

2009-04-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anand, On 4/21/2009 9:57 AM, connossieur wrote: > 1000 threads come up by themselves. I have configured Tomcat to spawn only 70 > threads. Something must be wrong. Your executor configuration: Does not match your thread dump: RUNNABLE "http-

RE: Problem with maximum threads

2009-04-21 Thread connossieur
1000 threads come up by themselves. I have configured Tomcat to spawn only 70 threads. Also, I'll look for synchronization issues in the code. :) Caldarale, Charles R wrote: > >> From: connossieur [mailto:anand.b...@aricent.com] >> Subject: Re: Problem with maximum threa

RE: Problem with maximum threads

2009-04-21 Thread Caldarale, Charles R
> From: connossieur [mailto:anand.b...@aricent.com] > Subject: Re: Problem with maximum threads > > Should the code I write be thread safe? Usually. If it's within a servlet, then it *must* be thread safe, since a servlet instance may handle multiple requests simultaneously

RE: Problem with maximum threads

2009-04-21 Thread Caldarale, Charles R
> From: Stephen Caine [mailto:step...@commongrnd.com] > Subject: Re: Problem with maximum threads > > However, the maximum number of threads Tomcat will > handle is somewhere about 2400. I'm curious: where did you conjure up that number? The actual limit will vary

Re: Problem with maximum threads

2009-04-21 Thread connossieur
ut >> after >> that time, the CPU consumption is maximum and idle is 0. Also, there >> are >> more than 1000 threads even if I have configured the maximum threads >> to be >> 70 in the configuration. There is no problem in the application code

Re: Problem with maximum threads

2009-04-21 Thread Stephen Caine
? Thanks, Anand -- View this message in context: http://www.nabble.com/Problem-with-maximum-threads-tp23154175p23154175.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

RE: Problem with maximum threads

2009-04-21 Thread connossieur
-- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Problem-with-maximum-threads-tp23154175p23

RE: Problem with maximum threads

2009-04-21 Thread Peter Crowther
> From: connossieur [mailto:anand.b...@aricent.com] > The application doesn't have problems as I tested it with > Visual VM (profiler for java 6) on Windows. OK. You've done more research than most, then - we get a lot of people blaming Tomcat as the first thing they do, so we tend to have some

RE: Problem with maximum threads

2009-04-21 Thread connossieur
ilité pour le contenu fourni. > > > > > > >> Date: Tue, 21 Apr 2009 04:34:58 -0700 >> From: anand.b...@aricent.com >> To: users@tomcat.apache.org >> Subject: Problem with maximum threads >> >> >> Hi, >> >> I am using Tomcat

RE: Problem with maximum threads

2009-04-21 Thread Martin Gainty
er aucune responsabilité pour le contenu fourni. > Date: Tue, 21 Apr 2009 04:34:58 -0700 > From: anand.b...@aricent.com > To: users@tomcat.apache.org > Subject: Problem with maximum threads > > > Hi, > > I am using Tomcat 6.0.9 with the following server.xml conf

RE: Problem with maximum threads

2009-04-21 Thread connossieur
use jstack). What are > the threads doing? > > - Peter > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- V

RE: Problem with maximum threads

2009-04-21 Thread Peter Crowther
> From: connossieur [mailto:anand.b...@aricent.com] > There is no problem in the application code. How have you proved this? Take a thread dump (you're on Java 1.6, so you can use jstack). What are the threads doing? - Peter

Problem with maximum threads

2009-04-21 Thread connossieur
://www.nabble.com/Problem-with-maximum-threads-tp23154175p23154175.html Sent from the Tomcat - User mailing list archive at Nabble.com.