-
how can I select from jmeter-dsl to delay the creation of threads until they are needed similar to .sampleErrorAction(BaseThreadGroup.SampleErrorAction.START_NEXT_ITERATION) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hello, thank you for taking the time to try the library and ask this question. I see in the image that you are pointing not only to the delay but same user on each iteration. Can you give more details of what are you trying to achieve in your test plan that might need such behavior? Additionally, why do you need the delay thread creation until needed? Can you give more insights? This would help us properly design the api and provide proper documentation and guidance to users on when to use each feature. Regards |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for your prompt reply Same user on each iteration: In my use case I need the cookies and cache to remain between iterations that's why I check the checkbox. Delay Thread creation until needed: In my use case I need that the resources are not created at the beginning of the test but until the resource needs to be created, for a better handling of the tps. |
Beta Was this translation helpful? Give feedback.
Hello,
Threads creation controlled by the checkbox property (delayed vs not delayed) is in general independent from the load imposed to the system under test. Is a technical aspect on when the JVM threads are created, and for how long they live. The generated load to the system under test is always ruled by ramp up period, max threads, etc. The main difference between using the checkbox or not, is if you don't mark it, internally JMeter creates all threads at the beginning but delays the execution of each thread iteration according to configured rampup, emulating desired behavior. When you enable the checkbox each thread is created as it is needed during rampup.
Main differences might be …