This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push: new e41bfacace Add default prefix for virtual threads and document the default prefixes e41bfacace is described below commit e41bfacaceafcb207c2c98fb8b05e5a4173dcbe4 Author: Mark Thomas <ma...@apache.org> AuthorDate: Sat May 13 13:29:57 2023 +0100 Add default prefix for virtual threads and document the default prefixes --- java/org/apache/catalina/core/StandardVirtualThreadExecutor.java | 2 +- webapps/docs/config/executor.xml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/java/org/apache/catalina/core/StandardVirtualThreadExecutor.java b/java/org/apache/catalina/core/StandardVirtualThreadExecutor.java index 23663c4e4e..01ead67903 100644 --- a/java/org/apache/catalina/core/StandardVirtualThreadExecutor.java +++ b/java/org/apache/catalina/core/StandardVirtualThreadExecutor.java @@ -33,7 +33,7 @@ public class StandardVirtualThreadExecutor extends LifecycleMBeanBase implements private String name; private java.util.concurrent.Executor executor; - private String namePrefix; + private String namePrefix = "tomcat-virt-"; public void setName(String name) { this.name = name; diff --git a/webapps/docs/config/executor.xml b/webapps/docs/config/executor.xml index b5e48099f5..f0e7e0fa3e 100644 --- a/webapps/docs/config/executor.xml +++ b/webapps/docs/config/executor.xml @@ -95,7 +95,8 @@ </attribute> <attribute name="namePrefix" required="false"> <p>(String) The name prefix for each thread created by the executor. - The thread name for an individual thread will be <code>namePrefix+threadNumber</code></p> + The thread name for an individual thread will be <code>namePrefix+threadNumber</code>. The default value is + <code>tomcat-exec-</code>.</p> </attribute> <attribute name="maxThreads" required="false"> <p>(int) The max number of active threads in this pool, default is <code>200</code></p> @@ -136,7 +137,8 @@ <attributes> <attribute name="namePrefix" required="false"> <p>(String) The name prefix for each thread created by the executor. - The thread name for an individual thread will be <code>namePrefix+threadNumber</code></p> + The thread name for an individual thread will be <code>namePrefix+threadNumber</code>. The default value is + <code>tomcat-virt-</code></p> </attribute> </attributes> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org