How can I generate a dynamic work load by jMeter?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How can I generate a dynamic work load by jMeter?

Jerry-2
Dear all:
Thank you all for reading this mail.
I want to create a dynamic server load using jMeter, but it seems like it can only set a fixed number of threads in a test plan. I wrote a program to control the jMeter which can change the total number of threads among the processes by creating new processes or killing processes of jMeter. But I found that the jMeter process had a long time between its process started and began to send requests to the server, which makes it difficult to create a real time dynamic server load.
Besides, after I found that the jMeter can work in server mode, I changed my mind and tried to control jMeter that works in server mode. I want to know if there are any sdks that I can use to send test plans to a jMeter Server and control it to send requests with a dynamic number of threads (or static number is also work).
Thanks a lot for your replies and advice.

Jerry
Reply | Threaded
Open this post in threaded view
|

Re: How can I generate a dynamic work load by jMeter?

jmeter tea
Hello,
What do you mean by "killing processes of jMeter"? can you give more
details?
Currently JMeter doesn't support reducing threads, maybe only using
Beanshell server
https://stackoverflow.com/questions/66469483/jmeter-reduce-threads-on-runtime

On Wed, Mar 24, 2021 at 9:31 AM Jerry <[hidden email]> wrote:

> Dear all:
> Thank you all for reading this mail.
> I want to create a dynamic server load using jMeter, but it seems like it
> can only set a fixed number of threads in a test plan. I wrote a program to
> control the jMeter which can change the total number of threads among the
> processes by creating new processes or killing processes of jMeter. But I
> found that the jMeter process had a long time between its process started
> and began to send requests to the server, which makes it difficult to
> create a real time dynamic server load.
> Besides, after I found that the jMeter can work in server mode, I changed
> my mind and tried to control jMeter that works in server mode. I want to
> know if there are any sdks that I can use to send test plans to a jMeter
> Server and control it to send requests with a dynamic number of threads (or
> static number is also work).
> Thanks a lot for your replies and advice.
>
> Jerry
>
Reply | Threaded
Open this post in threaded view
|

Re: How can I generate a dynamic work load by jMeter?

ra0077
Hi

If you know the "dynamic work load" before the test, you can use JMeter
Plugins threadgroup like "Ultimate Thread Group" or "Free-Form Arrivals
Thread Group"

Le mer. 24 mars 2021 à 09:23, Jmeter Tea <[hidden email]> a écrit :

> Hello,
> What do you mean by "killing processes of jMeter"? can you give more
> details?
> Currently JMeter doesn't support reducing threads, maybe only using
> Beanshell server
>
> https://stackoverflow.com/questions/66469483/jmeter-reduce-threads-on-runtime
>
> On Wed, Mar 24, 2021 at 9:31 AM Jerry <[hidden email]> wrote:
>
> > Dear all:
> > Thank you all for reading this mail.
> > I want to create a dynamic server load using jMeter, but it seems like it
> > can only set a fixed number of threads in a test plan. I wrote a program
> to
> > control the jMeter which can change the total number of threads among the
> > processes by creating new processes or killing processes of jMeter. But I
> > found that the jMeter process had a long time between its process started
> > and began to send requests to the server, which makes it difficult to
> > create a real time dynamic server load.
> > Besides, after I found that the jMeter can work in server mode, I changed
> > my mind and tried to control jMeter that works in server mode. I want to
> > know if there are any sdks that I can use to send test plans to a jMeter
> > Server and control it to send requests with a dynamic number of threads
> (or
> > static number is also work).
> > Thanks a lot for your replies and advice.
> >
> > Jerry
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: How can I generate a dynamic work load by jMeter?

Jerry-2
In reply to this post by jmeter tea
Dear Jmeter Tea:

For example, I have started 5 processes with number of threads of 1,3,5,7,9. The total number of threads is 25. If I want to change to 20 threads, I can just kill the process which has 5 threads and the other 4 processes will continue running. If I want to change to 30 threads, I can just start a new process which has 5 threads. I can also change to 23 threads by kill the process which has 3 threads and start a new process which has 1 thread, but in this situation there will be a long time that the total number of threads is 22 while the new process is starting.

I have checked the Flow Control Action sampler, but it is a little bit simple, I’d like to wrote some program to implement some more complex patterns like the total number of threads that obey a sine function or log function.

I have tried the server mode and found it can only run one test plan simultaneously, but it can start or stop the plan quickly when set the ramp-up time to zero second. I want to know If there is any document that explain how the jMeter client communicates with the server by RMI as I can write a program replace the jMeter GUI client to send test plan to remote server and control its start and stop.

Thanks.

发件人: Jmeter Tea
发送时间: 2021年3月24日 16:23
收件人: JMeter Users List
主题: Re: How can I generate a dynamic work load by jMeter?

Hello,
What do you mean by "killing processes of jMeter"? can you give more
details?
Currently JMeter doesn't support reducing threads, maybe only using
Beanshell server
https://stackoverflow.com/questions/66469483/jmeter-reduce-threads-on-runtime

On Wed, Mar 24, 2021 at 9:31 AM Jerry <[hidden email]> wrote:

> Dear all:
> Thank you all for reading this mail.
> I want to create a dynamic server load using jMeter, but it seems like it
> can only set a fixed number of threads in a test plan. I wrote a program to
> control the jMeter which can change the total number of threads among the
> processes by creating new processes or killing processes of jMeter. But I
> found that the jMeter process had a long time between its process started
> and began to send requests to the server, which makes it difficult to
> create a real time dynamic server load.
> Besides, after I found that the jMeter can work in server mode, I changed
> my mind and tried to control jMeter that works in server mode. I want to
> know if there are any sdks that I can use to send test plans to a jMeter
> Server and control it to send requests with a dynamic number of threads (or
> static number is also work).
> Thanks a lot for your replies and advice.
>
> Jerry
>