Author: remm Date: Tue Jan 22 14:27:43 2019 New Revision: 1851822 URL: http://svn.apache.org/viewvc?rev=1851822&view=rev Log: 63078: Ensure the utility thread pool is at least two, as the deployer uses a blocking pattern
Modified: tomcat/trunk/java/org/apache/catalina/core/StandardServer.java tomcat/trunk/webapps/docs/changelog.xml Modified: tomcat/trunk/java/org/apache/catalina/core/StandardServer.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardServer.java?rev=1851822&r1=1851821&r2=1851822&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/catalina/core/StandardServer.java (original) +++ tomcat/trunk/java/org/apache/catalina/core/StandardServer.java Tue Jan 22 14:27:43 2019 @@ -185,7 +185,7 @@ public final class StandardServer extend /** * The number of threads available to process utility tasks in this service. */ - protected int utilityThreads = 1; + protected int utilityThreads = 2; /** * The utility threads daemon flag. @@ -418,8 +418,8 @@ public final class StandardServer extend int result = utilityThreads; if (result <= 0) { result = Runtime.getRuntime().availableProcessors() + result; - if (result < 1) { - result = 1; + if (result < 2) { + result = 2; } } return result; Modified: tomcat/trunk/webapps/docs/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1851822&r1=1851821&r2=1851822&view=diff ============================================================================== --- tomcat/trunk/webapps/docs/changelog.xml (original) +++ tomcat/trunk/webapps/docs/changelog.xml Tue Jan 22 14:27:43 2019 @@ -103,6 +103,10 @@ thrown when attempting to load a class from a corrupted JAR file. (markt) </fix> + <fix> + <bug>63078</bug>: Ensure the utility thread pool is at least two, as the + deployer uses a blocking pattern. (remm, markt) + </fix> </changelog> </subsection> <subsection name="Coyote"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org