Skip to content

Commit 36703e8

Browse files
committed
Use same max count of threads as the server thread pool
- It doesn't make much sense to use more Signed-off-by: David Matějček <[email protected]>
1 parent ffa2249 commit 36703e8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

appserver/tests/application/src/test/java/org/glassfish/main/test/app/monitoring/ThreadPoolMonitoringTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,10 @@ void testDualListenerHugeAmountOfFastRequests() throws Exception {
182182
assertThat(new AppClient(HTTP_POOL_TEST_PORT, 5000).test(), stringContainsInOrder(HTTP_POOL_TEST));
183183

184184
// Create load on both listeners simultaneously
185-
final HttpLoadGenerator generator1 = startHttpTestLoadGenerator(HTTP_POOL_1_PORT, 10, 1_000_000);
186-
final HttpLoadGenerator generatorTest = startHttpTestLoadGenerator(HTTP_POOL_TEST_PORT, 10, 1_000_000);
185+
final HttpLoadGenerator generator1 = startHttpTestLoadGenerator(HTTP_POOL_1_PORT,
186+
metrics1Baseline.maxThreads(), 1_000_000);
187+
final HttpLoadGenerator generatorTest = startHttpTestLoadGenerator(HTTP_POOL_TEST_PORT,
188+
metricsTestBaseline.maxThreads(), 1_000_000);
187189

188190
waitFor(Duration.ofSeconds(60L), () -> {
189191
ThreadPoolMetrics metrics1 = getThreadPoolMetrics(HTTP_POOL_1);

0 commit comments

Comments
 (0)