> 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
> 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
did you try specifying executor attribute in your Connector e.g.
Martin
__
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de
déni et de confidentialité
This message is confidential. If you should not be the intended rec
Yes, I have already mentioned in the mail. I have that executor attributes.
:)
mgainty wrote:
>
>
> did you try specifying executor attribute in your Connector e.g.
> executor="ThreadPool"
> ..
> />
>
> Martin
> __
> Disclaimer and Confidentiality
The application doesn't have problems as I tested it with Visual VM (profiler
for java 6) on Windows. But I need the application on Linux. I'll try to
take the thread dump and see. Anyways, can there be problem with Tomcat? I
mean, I have limited the number of threads, still tomcat spawns more tha
So, I'll take the dump and analyze and revert back.
One more confirmation. Is the executor configured by me for Tomcat
appropriate? Or should I make any more changes?
-Anand
Peter Crowther wrote:
>
>> From: connossieur [mailto:anand.b...@aricent.com]
>> The application doesn't have problems as
Anand,
As others will surely tell you, there is something amiss in your
application that spawns threads. However, the maximum number of
threads Tomcat will handle is somewhere about 2400. So, if you are
getting an error at 1000 threads, look somewhere else.
Stephen Caine
Soft Breeze Sys
Ya. I think I will have to re-analyze the code.
I have one doubt. Should the code I write be thread safe?
Following is the excerpt from the thread dump of different threads at
different states:
RUNNABLE
"http-80-37" daemon prio=6 tid=0x0b094400 nid=0x540 runnable
[0x0c5be000..0x0c5bfb94]
java
> 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
> 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
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
-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-
> 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
> 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
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:
> 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
-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
Christopher,
This is my Server.xml
Do you think this has a pr
Christopher,
This is my Server.xml
Do you think this has a pr
Christopher,
This is my Server.xml
Do you think this has a pr
I realize that my Server.xml is not being used by the Tomcat engine. I mean
the Connector part.
Should I make any modifications anywhere?
And I regret for the last repeated mails. It was sent by mistake.
-Anand
connossieur wrote:
>
> Christopher,
>
> This is my Server.xml
>
>
>
>
>SS
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
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
> 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
-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
25 matches
Mail list logo