This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push: new 345164ed7f Add default prefix for virtual threads and document the default prefixes 345164ed7f is described below commit 345164ed7ff961b388bde3af9605e39509d888e2 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 7398655494..9180582d54 100644 --- a/java/org/apache/catalina/core/StandardVirtualThreadExecutor.java +++ b/java/org/apache/catalina/core/StandardVirtualThreadExecutor.java @@ -32,7 +32,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 807e918467..84cc54b4f8 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> @@ -135,7 +136,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