Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jetty-deploy/src/test/resources/jetty.xml10
-rw-r--r--jetty-osgi/jetty-osgi-boot/jettyhome/etc/jetty.xml11
-rw-r--r--jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty.xml11
-rw-r--r--jetty-server/src/main/config/etc/jetty.xml17
4 files changed, 21 insertions, 28 deletions
diff --git a/jetty-deploy/src/test/resources/jetty.xml b/jetty-deploy/src/test/resources/jetty.xml
index fa285624ea..732adfb3f7 100644
--- a/jetty-deploy/src/test/resources/jetty.xml
+++ b/jetty-deploy/src/test/resources/jetty.xml
@@ -14,12 +14,10 @@
<!-- =========================================================== -->
<!-- Server Thread Pool -->
<!-- =========================================================== -->
- <Arg name="threadPool">
- <New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
- <Set name="maxThreads">200</Set>
- <Set name="minThreads">10</Set>
- </New>
- </Arg>
+ <Get name="ThreadPool">
+ <Set name="minThreads" type="int">10</Set>
+ <Set name="maxThreads" type="int">200</Set>
+ </Get>
<!-- =========================================================== -->
<!-- Set connectors -->
diff --git a/jetty-osgi/jetty-osgi-boot/jettyhome/etc/jetty.xml b/jetty-osgi/jetty-osgi-boot/jettyhome/etc/jetty.xml
index 4bde8d7222..5c882b0514 100644
--- a/jetty-osgi/jetty-osgi-boot/jettyhome/etc/jetty.xml
+++ b/jetty-osgi/jetty-osgi-boot/jettyhome/etc/jetty.xml
@@ -14,13 +14,10 @@
<!-- =========================================================== -->
<!-- Server Thread Pool -->
<!-- =========================================================== -->
- <Arg name="threadpool">
- <!-- Default queued blocking threadpool -->
- <New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
- <Set name="minThreads">10</Set>
- <Set name="maxThreads">200</Set>
- </New>
- </Arg>
+ <Get name="ThreadPool">
+ <Set name="minThreads">10</Set>
+ <Set name="maxThreads">200</Set>
+ </Get>
<!-- =========================================================== -->
diff --git a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty.xml b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty.xml
index 4bde8d7222..170530b80e 100644
--- a/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty.xml
+++ b/jetty-osgi/test-jetty-osgi/src/test/config/etc/jetty.xml
@@ -14,14 +14,11 @@
<!-- =========================================================== -->
<!-- Server Thread Pool -->
<!-- =========================================================== -->
- <Arg name="threadpool">
+ <Get name="ThreadPool">
<!-- Default queued blocking threadpool -->
- <New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
- <Set name="minThreads">10</Set>
- <Set name="maxThreads">200</Set>
- </New>
- </Arg>
-
+ <Set name="minThreads">10</Set>
+ <Set name="maxThreads">200</Set>
+ </Get>
<!-- =========================================================== -->
<!-- Set handler Collection Structure -->
diff --git a/jetty-server/src/main/config/etc/jetty.xml b/jetty-server/src/main/config/etc/jetty.xml
index a551326cc6..b88ceb217d 100644
--- a/jetty-server/src/main/config/etc/jetty.xml
+++ b/jetty-server/src/main/config/etc/jetty.xml
@@ -42,14 +42,15 @@
<!-- Consult the javadoc of o.e.j.util.thread.QueuedThreadPool -->
<!-- for all configuration that may be set here. -->
<!-- =========================================================== -->
- <Arg name="threadpool">
- <New id="threadpool" class="org.eclipse.jetty.util.thread.QueuedThreadPool">
- <Arg name="minThreads" type="int"><Property name="threads.min" default="10"/></Arg>
- <Arg name="maxThreads" type="int"><Property name="threads.max" default="200"/></Arg>
- <Arg name="idleTimeout" type="int"><Property name="threads.timeout" default="60000"/></Arg>
- <Set name="detailedDump">false</Set>
- </New>
- </Arg>
+ <!-- uncomment to change type of threadpool
+ <Arg name="threadpool"><New id="threadpool" class="org.eclipse.jetty.util.thread.QueuedThreadPool"/></Arg>
+ -->
+ <Get name="ThreadPool">
+ <Set name="minThreads" type="int"><Property name="threads.min" default="10"/></Set>
+ <Set name="maxThreads" type="int"><Property name="threads.max" default="200"/></Set>
+ <Set name="idleTimeout" type="int"><Property name="threads.timeout" default="60000"/></Set>
+ <Set name="detailedDump">false</Set>
+ </Get>
<!-- =========================================================== -->
<!-- Add shared Scheduler instance -->

Back to the top