DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27552>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27552

minProcessors and minSpareThreads are not honored at startup

           Summary: minProcessors and minSpareThreads are not honored at
                    startup
           Product: Tomcat 4
           Version: 4.1.30
          Platform: Sun
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Connector:Coyote HTTP/1.1
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


>From the tomcat 4.1.30 docs:
"minProcessors: The number of request processing threads that will be created
when this Connector is first started."

I also see minSpareThreads in the tomcat 5 docs, and it defaults to "4" in the
Coyote connector.  I noticed 4.1.30 contains a backport of Coyote 1.1. 

I've confirmed that minProcessors and minSpareThreads does not work as
documented on 4.1.30.  I set minSpareThreads="30" and minProcessors="50".  I
started tomcat, then sent 1 request to the server, and forced a thread dump.  I
see TP-Processor[1-4] in the dump (note that "4" is default value for
minSpareThreads).   I then sent concurrent requests, and did another dump.  Now
I see TP-Processors[1-20].

org.apache.catalina.connector.http.HttpConnector does start the requested number
of threads, in a simple loop.

When tomcat is started under heavy load conditions (40+ concurrent requests), it
takes a lot of time to start enough threads to handle the load.  We did not
experience this problem using the HttpConnector.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to