Skip to content

Commit 08a07ce

Browse files
committed
chore: reduce a number of Jetty threads for testing profiles
Relate to #1244
1 parent 35d2f78 commit 08a07ce

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

src/main/resources/application-postgres.properties

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ logging.level.org.springframework.web.servlet.mvc.method.annotation.RequestMappi
3838

3939
app.use-cdn: false
4040

41+
# reduce a number of threads (8 and 200 by default)
42+
server.jetty.threads.min: 2
43+
server.jetty.threads.max: 4
44+
4145
# Full list of autoconfiguration classes:
4246
# https://docs.spring.io/spring-boot/docs/2.3.x/reference/html/appendix-auto-configuration-classes.html
4347
# The difference between test profile is that we don't need H2ConsoleAutoConfiguration

src/main/resources/application-test.properties

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ spring.h2.console.path: /console
1313
# required for using /console with CSP because we have many hashes as a workaround
1414
server.max-http-header-size: 4096
1515

16+
# reduce a number of threads (8 and 200 by default)
17+
server.jetty.threads.min: 2
18+
server.jetty.threads.max: 4
19+
1620
spring.messages.cache-duration: 1m
1721
spring.messages.fallback-to-system-locale: false
1822
spring.messages.basename: \

src/main/resources/application-travis.properties

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ app.upload.dir: /tmp/uploads
3737
app.preview.dir: /tmp/preview
3838
app.use-cdn: false
3939

40+
# reduce a number of threads (8 and 200 by default)
41+
server.jetty.threads.min: 2
42+
server.jetty.threads.max: 4
43+
4044
# Full list of autoconfiguration classes:
4145
# https://docs.spring.io/spring-boot/docs/2.3.x/reference/html/appendix-auto-configuration-classes.html
4246
# The difference between test profile is that we don't need H2ConsoleAutoConfiguration

0 commit comments

Comments
 (0)