-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alexey,

On 3/11/2009 6:16 PM, Alexey Vlasov wrote:
> On Tue, Mar 10, 2009 at 11:04:43AM -0400, Christopher Schultz wrote:
>> My thread dump contained 5 JVM threads + 14 Tomcat threads + 1 MySQL
>> thread = 20 threads. You have 27, and you didn't tell us a thing about
>> what your application does.
> 
> "Default Tomcat home page" and Server-status/Tomcat Manager
> applications :)

Gotcha.

>>> <Connector address="123.123.123.123" port="50002" protocol="HTTP/1.1"
>>> connectionTimeout="20000" maxThreads="10" minSpareThreads="2" 
>>> maxSpareThreads="5" />
>>
>> This is the only information you gave us that could help determine what
>> those threads are. If you take a thread dump and re-post, we might be
>> able to help.
> 
> Full thread dump Java HotSpot(TM) 64-Bit Server VM (10.0-b22 mixed mode):
> 
> "http-123.123.123.123-50002-Acceptor-0" daemon prio=10 tid=0x00002aaac4a5e000 
> nid=0x348b runnable [0x000000004143c000..0x000000
> 004143cd90]

It looks like the verbosity of Thread names have been increased from TC
5.5 to TC 6.0. I like this, because you can tell which <Connector>
created the thread.

> According to the written above everything is clear in the dump.
> Thank you so much for your help.

No problem. Often, newcomers to both Java and webapps in general can be
shocked to see how many threads are running. How many processors to you
have on this box? Looks like 8:

"GC task thread#0 (ParallelGC)"
"GC task thread#1 (ParallelGC)"
"GC task thread#2 (ParallelGC)"
"GC task thread#3 (ParallelGC)"
"GC task thread#4 (ParallelGC)"
"GC task thread#5 (ParallelGC)"
"GC task thread#6 (ParallelGC)"
"GC task thread#7 (ParallelGC)"

> But i've got one question left, can I set idle timeout for
> the thread TP-Processor, after which they will die?

I think you have to use an <Executor> for that. See
http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html for
details. You should be able to use "maxIdleTime" to configure that. Just
remember to connect your <Connector> to your <Executor> by using the
"executor" attribute of the <Connector>, and remove all the
thread-configuration attributes from your <Connector>, too.

Good luck,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkm4OkQACgkQ9CaO5/Lv0PBWJwCgjGMWzQ926Bt+cnKqG3rN7AUJ
kOMAn3jAu3YSRmL9N/4U6A+qtaApDsEd
=wHCS
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to