RE: Blocking threads in Tomcat

2008-07-01 Thread Fredrik Tolf
On Tue, 2008-07-01 at 09:16 -0500, Caldarale, Charles R wrote: > > When, on the other hand, I'm running two requests to "/ls" > > simultaneously, there is only one thread from the pool in > > the doGet function. > > Any chance the client (or some overly helpful anti-DOS firewall) > is serializing

Re: Blocking threads in Tomcat

2008-07-01 Thread Mikolaj Rydzewski
Fredrik Tolf wrote: When, on the other hand, I'm running two requests to "/ls" simultaneously, What tool do you use to perform requests? Regular web browser? Try with something more 'generic' - wget or ab. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> -

RE: Blocking threads in Tomcat

2008-07-01 Thread Caldarale, Charles R
> From: Fredrik Tolf [mailto:[EMAIL PROTECTED] > Subject: Re: Blocking threads in Tomcat > > There's no way I could be doing any such thing unknowingly, > such as it being the default, right? No, single-thread is not the default. > When, on the other hand, I'm

Re: Blocking threads in Tomcat

2008-07-01 Thread Leon Rosenberg
interesting, can you provide your webapp + configs for download and test? Leon On Tue, Jul 1, 2008 at 3:16 PM, Fredrik Tolf <[EMAIL PROTECTED]> wrote: > On Tue, 2008-07-01 at 08:46 +0200, Leon Rosenberg wrote: >> Hello Frederic, >> >> unless you are using the SingleThreaded Model (and you shouldn

Re: Blocking threads in Tomcat

2008-07-01 Thread Fredrik Tolf
On Tue, 2008-07-01 at 08:46 +0200, Leon Rosenberg wrote: > Hello Frederic, > > unless you are using the SingleThreaded Model (and you shouldn't) > tomcat does no such thing. There's no way I could be doing any such thing unknowingly, such as it being the default, right? > I assume the best way i

RE: Blocking threads in Tomcat

2008-07-01 Thread Steffen Heil
Hi If you are on linux, do the following: killall -3 java Then look into catalina.out. It will print all stack traces, including monitors being hold and waited for. Regards, Steffen > -Original Message- > From: Fredrik Tolf [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 01, 2

RE: Blocking threads in Tomcat

2008-07-01 Thread Peter Crowther
Tomcat version? Java version? Anything in the servlet that synchronises on a common lock? In general, one worker thread handles one request, from start to finish; then it's returned to the pool to be reused. Is that what you would expect? - Peter > From: Fredrik Tolf [mailto:[E

Re: Blocking threads in Tomcat

2008-06-30 Thread Leon Rosenberg
Hello Frederic, unless you are using the SingleThreaded Model (and you shouldn't) tomcat does no such thing. I assume the best way is to show us your servlet code, or to check for synchronized blocks in it. regards Leon On Tue, Jul 1, 2008 at 6:11 AM, Fredrik Tolf <[EMAIL PROTECTED]> wrote: > Hi