forked from jetty/jetty.project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue jetty#2130 Creates threadpool module. (jetty#2132)
* Creates threadpool module. Resolves jetty#2130 Signed-off-by: WalkerWatch <[email protected]> * Fixed formatting Signed-off-by: WalkerWatch <[email protected]> * Made requested changes. Signed-off-by: WalkerWatch <[email protected]> * Additional PR changes. Signed-off-by: WalkerWatch <[email protected]> * Udated jetty-threadpool.xml Signed-off-by: WalkerWatch <[email protected]>
- Loading branch information
1 parent
fe2be81
commit 0345820
Showing
5 changed files
with
52 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd"> | ||
|
||
<Configure id="threadPool" class="org.eclipse.jetty.util.thread.QueuedThreadPool"> | ||
|
||
<!-- =========================================================== --> | ||
<!-- Configure the Server Thread Pool. --> | ||
<!-- The server holds a common thread pool which is used by --> | ||
<!-- default as the executor used by all connectors and servlet --> | ||
<!-- dispatches. --> | ||
<!-- --> | ||
<!-- Configuring a fixed thread pool is vital to controlling the --> | ||
<!-- maximal memory footprint of the server and is a key tuning --> | ||
<!-- parameter for tuning. In an application that rarely blocks --> | ||
<!-- then maximal threads may be close to the number of 5*CPUs. --> | ||
<!-- In an application that frequently blocks, then maximal --> | ||
<!-- threads should be set as high as possible given the memory --> | ||
<!-- available. --> | ||
<!-- --> | ||
<!-- Consult the javadoc of o.e.j.util.thread.QueuedThreadPool --> | ||
<!-- for all configuration that may be set here. --> | ||
<!-- =========================================================== --> | ||
<Set name="minThreads" type="int"><Property name="jetty.threadPool.minThreads" deprecated="threads.min" default="10"/></Set> | ||
<Set name="maxThreads" type="int"><Property name="jetty.threadPool.maxThreads" deprecated="threads.max" default="200"/></Set> | ||
<Set name="idleTimeout" type="int"><Property name="jetty.threadPool.idleTimeout" deprecated="threads.timeout" default="60000"/></Set> | ||
<Set name="detailedDump" type="boolean"><Property name="jetty.threadPool.detailedDump" default="false"/></Set> | ||
</Configure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[description] | ||
Enables the Server thread pool. | ||
|
||
[xml] | ||
etc/jetty-threadpool.xml | ||
|
||
[ini-template] | ||
|
||
### Server Thread Pool Configuration | ||
## Minimum Number of Threads | ||
#jetty.threadPool.minThreads=10 | ||
|
||
## Maximum Number of Threads | ||
#jetty.threadPool.maxThreads=200 | ||
|
||
## Thread Idle Timeout (in milliseconds) | ||
#jetty.threadPool.idleTimeout=60000 | ||
|
||
## Whether to Output a Detailed Dump | ||
#jetty.threadPool.detailedDump=false |