How to Calculate the Number of Load Generators Required for TruClient Scripts
Question ID: 105140
1
0
Marked as spam
Posted by (Questions: 231, Answers: 18)
Asked on October 8, 2013 5:59 pm
995 views
Answers (1)
1
Private answer

The TruClient footprint can be significantly larger than the footprints of other Vuser protocols. This larger footprint will require more CPU and memory capacity than would be required to run a similar business process recorded in another protocol.

TruClient technology provides you with the ability to quickly and easily record complex business processes. However, because TruClient records at the user level and requires a browser for replay; the more complex an application's client logic is, the more CPU and memory is required to run a Vuser.

To determine the required number of load generators:

1. Record a script using Ajax TruClient.

2. Replay a single Vuser in Controller and check the average CPU and the peak memory consumption of the mdrv.exe process by adding a counter for % Processor Time and Private Bytes.
3. Based on your load generator hardware and the CPU and memory consumption of a single Vuser, calculate the number of Vusers per machine.

For example:

Let us assume that each of the load generators has 8 core processors and 16GB of memory.
Let us also assume that a single Vuser consumes 100MB of peak memory and 10% CPU on average for the specific business process.

From a CPU perspective:

if we limit the CPU consumption up to 70% utilization, we can have 7 Vusers per core processor (70% /10%). If our load generator has a total of 8 cores processors, 8 * 7 Vusers per processor equals 56 Vusers per load generator.

From a memory perspective:

The load generator machine has 16GB memory of which 15GB is available for the Vusers so approximately 150 Vusers per load generator machine (15GB / 100MB). Around down the near whole number as we can't run part of the Vuser.

Therefore, to meet both the CPU and memory capacity limits, we use the lower number of Vusers and we calculate that for this business process, **we can run approximately 56 Vusers per load generator.**

Marked as spam
Posted by (Questions: 12, Answers: 384)
Answered on October 8, 2013 6:39 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top