Skip to content

Commit

Permalink
Set thread defaults on Xnio to avoid overwhelming jvm.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Whiting committed Apr 6, 2020
1 parent 785e424 commit b18299f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions boot/jaxrs/src/main/conf/conf.d/rest.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# Specify a set number of threads used by XNIO to handle I/O for REST requests.
# By default, this is set by Undertow itself, and is set to either 2 or the number of CPU-cores, whichever is greater
#io.threads=
io.threads=2

# Specify a set number of threads used by the XNIO workers to serve REST requests.
# By default, this is set by Undertow itself, and is set to 8X [CPU-cores]
#worker.threads=
worker.threads=40
4 changes: 2 additions & 2 deletions boot/jaxrs/src/main/resources/default-rest.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# Specify a set number of threads used by XNIO to handle I/O for REST requests.
# By default, this is set by Undertow itself, and is set to either 2 or the number of CPU-cores, whichever is greater
#io.threads=
io.threads=2

# Specify a set number of threads used by the XNIO workers to serve REST requests.
# By default, this is set by Undertow itself, and is set to 8X [CPU-cores]
#worker.threads=
worker.threads=40

0 comments on commit b18299f

Please sign in to comment.