# Gather Performance Data

> The target machine to be monitored must have either <a href="/general-information/test-studio-run-time" target="_blank">**Run Time edition**</a> or Test Studio installed on it. The <a href="/automated-tests/scheduling/multiple-machines-scheduling-setup/create-execution-server#start-the-execution-client" target="_blank">Test Studio Execution Client</a> needs to be running before Test Studio can connect to it for performance monitoring.

The below instruction assumes that you already have configured a performance run and you only need to add performance counters to be monitored.

1. Click the **Configure** button in the **Set Up** ribbon.

   ![Click configure button](https://www.telerik.com/teststudio/documentation/assets/c5e0becc9d0722cac2ab3128ddb6e8f4/fig15.png)

2. Click **Continue to Step 2 >** button in the **Configure Performance Settings** window.

   ![Continue to step 2](https://www.telerik.com/teststudio/documentation/assets/596beaf2d80a9cecd32ec33db9d56813/continue-to-step-2.png)

3. Check the **Gather Computer Performance Data** checkbox.

4. Click the **Add a computer** button.

   ![Add a computer](https://www.telerik.com/teststudio/documentation/assets/caf478979d4d9e874e4b82388fe4f611/fig4.png)

5. Set a friendly name for this machine configuration, then enter the actual machine name or IP address. The machine must be running the Test Studio Profiling Service, e.g. the Test Studio Execution client.

6. Click the **Connect** button to confirm a connection can be established.

   ![Connect](https://www.telerik.com/teststudio/documentation/assets/acf58721b2c5e9700b018997689d312b/fig5.png)

   > **Tip**
   > If the connection fails, go to the **Help** tab and click the **View Log** button in the **Logging** ribbon. The **Enable** button must be selected beforehand for the log to populate with information. If it is not useful for you, submit the generated log zipped into a support thread.
   > <br>
   > ![View Log](https://www.telerik.com/teststudio/documentation/assets/b350c8d132a38c75fb14619dbbe4be86/fig6.png)
   > **Note!** The most common reason that the connection cannot be made is that the Profiler Service is not running on the computer you entered. That computer must have <a href="/general-information/test-studio-run-time" target="_blank">Run-Time Edition</a> installed and the <a href="/automated-tests/scheduling/multiple-machines-scheduling-setup/create-execution-server#start-the-execution-client" target="_blank">Test Studio Execution Client</a> running.

7. In the section labeled **Select the system resources that you want to monitor** choose from the list with **Available Counters**. Select an entire group, or expand the group to select specific counters within it.

   ![Available Counters](https://www.telerik.com/teststudio/documentation/assets/15fd39013c5a6ed49f41a89fb4364822/fig8.png)

> **Note!**
>
> > <br>
>
> It is up to you and your team to decide which Performance Counters to use for your application depending on the monitoring you need.

8. You can save this set of performance counters as a template, click ![Disk](https://www.telerik.com/teststudio/documentation/assets/5ce0637f759c90c0d5991d8053e9348f/fig12.png).

   ![Save New Template](https://www.telerik.com/teststudio/documentation/assets/a1f4eeba8fd15e190dcb3902b8c6a404/fig13.png)

9. Click **Done Editing** when finished. Click **Cancel** to revert changes. Click **Delete** to remove this server configuration.

10. To import a previously saved template of performance counters, click ![Folder](https://www.telerik.com/teststudio/documentation/assets/f4478d0948a6bb9cb2c23a410703f00d/fig9.png) .

    ![Saved template](https://www.telerik.com/teststudio/documentation/assets/3d35b8f18453e453c6a7d72f0ed4989b/fig10.png)

Select the template you wish to use. You can view the performance counters included in this template. Click **Add** to use this template.

![Add Template](https://www.telerik.com/teststudio/documentation/assets/00c805d5f21ef92ddb940a10e780f971/fig11.png)

11. You can monitor Performance Counters on more than one machine. Click the **Add a computer** button to gather performance data on another machine.

    ![Monitor multiple machines](https://www.telerik.com/teststudio/documentation/assets/20530c4aba337f4242814022d85c4f48/monitor-multiple-machines.png)

12. When finished click **Save** and continue to initiating the performance test run.
