arm
arm

Reputation: 451

JMeter Difference between Samples and thread

I am little bit confused when it comes to samples and threads with loop count So, If I have 200 threads and 3 loop counts, totals samples The Summary Report are 600. Does this mean I have 600 users?

Upvotes: 1

Views: 955

Answers (2)

Dmitri T
Dmitri T

Reputation: 168002

It doesn't.

  • Thread represents a virtual user
  • Each thread executes samplers upside down (or according to Logic Controllers)
  • Each executed sampler is sample
  • When thread (virtual user) doesn't have any more samplers to execute and more loops to iterate it's being shut down

Also

  • 200 threads doesn't necessarily mean 200 concurrent users as some threads might not have been started yet and some may already be finished. You can visualize real concurrency using i.e. Active Threads Over Time listener or set the desired concurrency via Constant Throughput Timer

Upvotes: 2

prtnkl
prtnkl

Reputation: 302

Thread = user, Sample = one user requesting something to someone

If you have 200 threads you have 200 users, *3 loops = 600 samples (3 for each user/thread).

Upvotes: 1

Related Questions