This is an automated email from the ASF dual-hosted git repository. fschumacher pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/jmeter.git
commit 45996dbd69cf9ad1ee95e0cc522a10196e4e6e0f Author: Felix Schumacher <[email protected]> AuthorDate: Tue Sep 24 17:05:28 2024 +0200 Use current time as start time for OMTG When we use the test start time via JMeterContextService#getTestStartTime, we might create a storm of test samples at the beginning, when a setup thread group made us wait. --- .../kotlin/org/apache/jmeter/threads/openmodel/OpenModelThreadGroup.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/src/main/kotlin/org/apache/jmeter/threads/openmodel/OpenModelThreadGroup.kt b/src/core/src/main/kotlin/org/apache/jmeter/threads/openmodel/OpenModelThreadGroup.kt index 167e17f628..5948dc6d40 100644 --- a/src/core/src/main/kotlin/org/apache/jmeter/threads/openmodel/OpenModelThreadGroup.kt +++ b/src/core/src/main/kotlin/org/apache/jmeter/threads/openmodel/OpenModelThreadGroup.kt @@ -204,7 +204,7 @@ public class OpenModelThreadGroup : val seed = randomSeed val rnd = if (seed == 0L) Random() else Random(seed) val gen = ThreadScheduleProcessGenerator(rnd, parsedSchedule) - val testStartTime = JMeterContextService.getTestStartTime() + val testStartTime = System.currentTimeMillis() val executorService = Executors.newCachedThreadPool() this.executorService = executorService val starter = ThreadsStarter(testStartTime, executorService, activeThreads, gen) { threadNumber ->
