You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by karthikeyan muthusamy <ma...@gmail.com> on 2020/02/18 03:05:30 UTC

Help needed about ThreadGroup Configuration

Hi,



I am using JMeter 5.2.1 for my API testing. I have created ThreadGroup and
under that created onlyonceControler. Inside that, created 3 http request
as follows. The testing works fine. I am struggling how to configure the
threadGroup. I wanted to test 100*1000 parallel request. I am not sure how
many users,rampup period and loop count I have to declare. Assume this aPI
will be used in credit card transaction. so please help me in configuring
the threadgroup.





               ThreadGroup



                                ->OnyonceController

                                                ->AuthenticateAPI

                                                                ->JSON
Extractor – which extracts the token from the authenticate API

                                           ->UserTransactionAPI (positive
Case)

                                                ->HTTP Header Manager –
added content Type

                                                                ->BeanShell
PreProcessor – to added token to header

->UserTransactionAPI (Negative case)

                                                ->HTTP Header Manager –
added content Type

                                                                ->BeanShell
PreProcessor – to added token to header

Re: Help needed about ThreadGroup Configuration

Posted by Felix Schumacher <fe...@internetallee.de>.
As written in my first reply, the users mailing list is the more
appropriate place to find help with the usage of JMeter. Therefore, I
have chosen to cross-post this reply to both.

Please be careful when replying to include the users mailing list, only.

Am 19.02.20 um 23:03 schrieb karthikeyan muthusamy:
> Hi Felix,
>
> I would  want to simulate 100,000 users that are issuing 1 request in
> parallel. Please guide me.


For that many parallel requests, you will have to setup a client/server
construct as described at
https://jmeter.apache.org/usermanual/remote-test.html and
https://jmeter.apache.org/usermanual/jmeter_distributed_testing_step_by_step.html

Starting from such a setup I would look at more complex setups like
JMeter running on Kubernetes
(https://blog.kubernauts.io/load-testing-as-a-service-with-jmeter-on-kubernetes-fc5288bb0c8b)

The problems with 100,000 parallel connections (that's what a user is)
is manifold. The JVM will need lots of memory for the connection
handling, that will result in a lot of GC work. There might be lock
contention, if everything is run in one JVM. One IP has only about
65,000 ports available to bind clients/servers to it. That means you
will have to use different client IPs (JMeter is able to use those, if
correctly configured). Your disks will have to be fast enough to write
logs of the work done. ...

So I would start somewhere, where I feel comfortable and try to enhance
the setup slowly. If on your way you encounter problems, than ask those
questions on the mailing list.

Do so with enough information, that anyone, who has no access to your
setup, can see, what you are trying to achieve and what is not working
for you.

Felix 

>
> On Wed, Feb 19, 2020 at 3:21 PM Felix Schumacher <
> felix.schumacher@internetallee.de> wrote:
>
>> Am 18.02.20 um 04:05 schrieb karthikeyan muthusamy:
>>> Hi,
>>>
>> Hi,
>>
>> questions about the usage of JMeter are probably better suited for the
>> users mailing list. The developers mailing list is for discussions about
>> the development of features or fixing of bugs.
>>
>>> I am using JMeter 5.2.1 for my API testing. I have created ThreadGroup
>> and
>>> under that created onlyonceControler. Inside that, created 3 http request
>>> as follows. The testing works fine. I am struggling how to configure the
>>> threadGroup. I wanted to test 100*1000 parallel request. I am not sure
>> how
>>
>> Do you want to simulate 100 users that run in parallel and are doing
>> 1,000 requests each, or do you want to simulate 100,000 users that are
>> issuing 1 request in parallel?
>>
>> Felix
>>
>>> many users,rampup period and loop count I have to declare. Assume this
>> aPI
>>> will be used in credit card transaction. so please help me in configuring
>>> the threadgroup.
>>>
>>>
>>>
>>>
>>>
>>>                ThreadGroup
>>>
>>>
>>>
>>>                                 ->OnyonceController
>>>
>>>                                                 ->AuthenticateAPI
>>>
>>>                                                                 ->JSON
>>> Extractor – which extracts the token from the authenticate API
>>>
>>>                                            ->UserTransactionAPI (positive
>>> Case)
>>>
>>>                                                 ->HTTP Header Manager –
>>> added content Type
>>>
>>>
>>  ->BeanShell
>>> PreProcessor – to added token to header
>>>
>>> ->UserTransactionAPI (Negative case)
>>>
>>>                                                 ->HTTP Header Manager –
>>> added content Type
>>>
>>>
>>  ->BeanShell
>>> PreProcessor – to added token to header
>>>

Re: Help needed about ThreadGroup Configuration

Posted by Felix Schumacher <fe...@internetallee.de>.
As written in my first reply, the users mailing list is the more
appropriate place to find help with the usage of JMeter. Therefore, I
have chosen to cross-post this reply to both.

Please be careful when replying to include the users mailing list, only.

Am 19.02.20 um 23:03 schrieb karthikeyan muthusamy:
> Hi Felix,
>
> I would  want to simulate 100,000 users that are issuing 1 request in
> parallel. Please guide me.


For that many parallel requests, you will have to setup a client/server
construct as described at
https://jmeter.apache.org/usermanual/remote-test.html and
https://jmeter.apache.org/usermanual/jmeter_distributed_testing_step_by_step.html

Starting from such a setup I would look at more complex setups like
JMeter running on Kubernetes
(https://blog.kubernauts.io/load-testing-as-a-service-with-jmeter-on-kubernetes-fc5288bb0c8b)

The problems with 100,000 parallel connections (that's what a user is)
is manifold. The JVM will need lots of memory for the connection
handling, that will result in a lot of GC work. There might be lock
contention, if everything is run in one JVM. One IP has only about
65,000 ports available to bind clients/servers to it. That means you
will have to use different client IPs (JMeter is able to use those, if
correctly configured). Your disks will have to be fast enough to write
logs of the work done. ...

So I would start somewhere, where I feel comfortable and try to enhance
the setup slowly. If on your way you encounter problems, than ask those
questions on the mailing list.

Do so with enough information, that anyone, who has no access to your
setup, can see, what you are trying to achieve and what is not working
for you.

Felix 

>
> On Wed, Feb 19, 2020 at 3:21 PM Felix Schumacher <
> felix.schumacher@internetallee.de> wrote:
>
>> Am 18.02.20 um 04:05 schrieb karthikeyan muthusamy:
>>> Hi,
>>>
>> Hi,
>>
>> questions about the usage of JMeter are probably better suited for the
>> users mailing list. The developers mailing list is for discussions about
>> the development of features or fixing of bugs.
>>
>>> I am using JMeter 5.2.1 for my API testing. I have created ThreadGroup
>> and
>>> under that created onlyonceControler. Inside that, created 3 http request
>>> as follows. The testing works fine. I am struggling how to configure the
>>> threadGroup. I wanted to test 100*1000 parallel request. I am not sure
>> how
>>
>> Do you want to simulate 100 users that run in parallel and are doing
>> 1,000 requests each, or do you want to simulate 100,000 users that are
>> issuing 1 request in parallel?
>>
>> Felix
>>
>>> many users,rampup period and loop count I have to declare. Assume this
>> aPI
>>> will be used in credit card transaction. so please help me in configuring
>>> the threadgroup.
>>>
>>>
>>>
>>>
>>>
>>>                ThreadGroup
>>>
>>>
>>>
>>>                                 ->OnyonceController
>>>
>>>                                                 ->AuthenticateAPI
>>>
>>>                                                                 ->JSON
>>> Extractor – which extracts the token from the authenticate API
>>>
>>>                                            ->UserTransactionAPI (positive
>>> Case)
>>>
>>>                                                 ->HTTP Header Manager –
>>> added content Type
>>>
>>>
>>  ->BeanShell
>>> PreProcessor – to added token to header
>>>
>>> ->UserTransactionAPI (Negative case)
>>>
>>>                                                 ->HTTP Header Manager –
>>> added content Type
>>>
>>>
>>  ->BeanShell
>>> PreProcessor – to added token to header
>>>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Help needed about ThreadGroup Configuration

Posted by karthikeyan muthusamy <ma...@gmail.com>.
Hi Felix,

I would  want to simulate 100,000 users that are issuing 1 request in
parallel. Please guide me.

On Wed, Feb 19, 2020 at 3:21 PM Felix Schumacher <
felix.schumacher@internetallee.de> wrote:

>
> Am 18.02.20 um 04:05 schrieb karthikeyan muthusamy:
> > Hi,
> >
> Hi,
>
> questions about the usage of JMeter are probably better suited for the
> users mailing list. The developers mailing list is for discussions about
> the development of features or fixing of bugs.
>
> >
> > I am using JMeter 5.2.1 for my API testing. I have created ThreadGroup
> and
> > under that created onlyonceControler. Inside that, created 3 http request
> > as follows. The testing works fine. I am struggling how to configure the
> > threadGroup. I wanted to test 100*1000 parallel request. I am not sure
> how
>
> Do you want to simulate 100 users that run in parallel and are doing
> 1,000 requests each, or do you want to simulate 100,000 users that are
> issuing 1 request in parallel?
>
> Felix
>
> > many users,rampup period and loop count I have to declare. Assume this
> aPI
> > will be used in credit card transaction. so please help me in configuring
> > the threadgroup.
> >
> >
> >
> >
> >
> >                ThreadGroup
> >
> >
> >
> >                                 ->OnyonceController
> >
> >                                                 ->AuthenticateAPI
> >
> >                                                                 ->JSON
> > Extractor – which extracts the token from the authenticate API
> >
> >                                            ->UserTransactionAPI (positive
> > Case)
> >
> >                                                 ->HTTP Header Manager –
> > added content Type
> >
> >
>  ->BeanShell
> > PreProcessor – to added token to header
> >
> > ->UserTransactionAPI (Negative case)
> >
> >                                                 ->HTTP Header Manager –
> > added content Type
> >
> >
>  ->BeanShell
> > PreProcessor – to added token to header
> >
>

Re: Help needed about ThreadGroup Configuration

Posted by Felix Schumacher <fe...@internetallee.de>.
Am 18.02.20 um 04:05 schrieb karthikeyan muthusamy:
> Hi,
>
Hi,

questions about the usage of JMeter are probably better suited for the
users mailing list. The developers mailing list is for discussions about
the development of features or fixing of bugs.

>
> I am using JMeter 5.2.1 for my API testing. I have created ThreadGroup and
> under that created onlyonceControler. Inside that, created 3 http request
> as follows. The testing works fine. I am struggling how to configure the
> threadGroup. I wanted to test 100*1000 parallel request. I am not sure how

Do you want to simulate 100 users that run in parallel and are doing
1,000 requests each, or do you want to simulate 100,000 users that are
issuing 1 request in parallel?

Felix

> many users,rampup period and loop count I have to declare. Assume this aPI
> will be used in credit card transaction. so please help me in configuring
> the threadgroup.
>
>
>
>
>
>                ThreadGroup
>
>
>
>                                 ->OnyonceController
>
>                                                 ->AuthenticateAPI
>
>                                                                 ->JSON
> Extractor – which extracts the token from the authenticate API
>
>                                            ->UserTransactionAPI (positive
> Case)
>
>                                                 ->HTTP Header Manager –
> added content Type
>
>                                                                 ->BeanShell
> PreProcessor – to added token to header
>
> ->UserTransactionAPI (Negative case)
>
>                                                 ->HTTP Header Manager –
> added content Type
>
>                                                                 ->BeanShell
> PreProcessor – to added token to header
>

Re: Help needed about ThreadGroup Configuration

Posted by Martianov Alexey <a....@bi.zone.INVALID>.
I think you will get more help if you post your question on stackoverflow sites or the like.

C уважением,
Алексей Мартьянов
 
Kind regards,
Alexei Martianov
BI.ZONE
a.martianov@bi.zone
 

 
105066, Москва, ул. Ольховская, д.4 к.2,
офис / факс: +7 499 110 25 34
www.bi.zone <http://www.bi.zone/>
 

On 20200218//, 06:05, "karthikeyan muthusamy" <ma...@gmail.com> wrote:

    Hi,
    
    
    
    I am using JMeter 5.2.1 for my API testing. I have created ThreadGroup and
    under that created onlyonceControler. Inside that, created 3 http request
    as follows. The testing works fine. I am struggling how to configure the
    threadGroup. I wanted to test 100*1000 parallel request. I am not sure how
    many users,rampup period and loop count I have to declare. Assume this aPI
    will be used in credit card transaction. so please help me in configuring
    the threadgroup.
    
    
    
    
    
                   ThreadGroup
    
    
    
                                    ->OnyonceController
    
                                                    ->AuthenticateAPI
    
                                                                    ->JSON
    Extractor – which extracts the token from the authenticate API
    
                                               ->UserTransactionAPI (positive
    Case)
    
                                                    ->HTTP Header Manager –
    added content Type
    
                                                                    ->BeanShell
    PreProcessor – to added token to header
    
    ->UserTransactionAPI (Negative case)
    
                                                    ->HTTP Header Manager –
    added content Type
    
                                                                    ->BeanShell
    PreProcessor – to added token to header