Skip to content

Commit 45996db

Browse files
committed
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.
1 parent 6abfb4d commit 45996db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/src/main/kotlin/org/apache/jmeter/threads/openmodel/OpenModelThreadGroup.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public class OpenModelThreadGroup :
204204
val seed = randomSeed
205205
val rnd = if (seed == 0L) Random() else Random(seed)
206206
val gen = ThreadScheduleProcessGenerator(rnd, parsedSchedule)
207-
val testStartTime = JMeterContextService.getTestStartTime()
207+
val testStartTime = System.currentTimeMillis()
208208
val executorService = Executors.newCachedThreadPool()
209209
this.executorService = executorService
210210
val starter = ThreadsStarter(testStartTime, executorService, activeThreads, gen) { threadNumber ->

0 commit comments

Comments
 (0)