tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 47227] New: Executor "namePrefix" property not working well
Date Wed, 20 May 2009 13:43:55 GMT

           Summary: Executor "namePrefix" property not working well
           Product: Tomcat 6
           Version: 6.0.18
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connectors

When setting a "namePrefix" to an Executor in server.xml, new threads in the
pool do not always use the given name prefix.

For my tests I used this descriptor:
<Executor name="VanExecutor" namePrefix="VanMx6Mn1-STI" maxThreads="6"
minSpareThreads="1" maxIdleTime="10000" daemon="false" />

The executor is assigned to my http connector:
<Connector port="8700" executor="VanExecutor" enableLookups="false"
allowTrace="true" vanAdditionalParams="here" maxThreads="200" acceptCount="20"
connectionTimeout="60000" bufferSize="4096" disableUploadTimeout="true"
maxProcessors="10" minProcessors="5" />

When I start my server and look with jconsole (or jstack), I can see that the
first thread is really using my defined prefix. But most of the subsequent
threads use the name "Null_Thread_Name".
I said "most" because sometime I see my prefix used again correctly but only
when using a large amount of threads (i.e. max 200 min 100).

I am using jdk 1.6.012.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message