Handles Usage - AVD Test

This test monitors and tracks the handles opened by processes running in the chosen Azure Virtual Desktop.

Target of the test : An Azure Virtual Desktop

Agent deploying the test : An internal agent.

Outputs of the test : One set of results for the chosen User/Desktop

Configurable parameters for the test
Parameters Description

Test Period

How often should the test be executed.

Host

The host for which the test is to be configured.

Port

The default port is NULL.

Handle Growth Limit

This defines the upper limit of the handles opened by any process. By default, this parameter is set to 8000. You can override this default setting by providing a higher or lower value here.

Those processes that are using more handles than the value specified against this parameter will be considered as processes that are using handles above limit. The count of such processes will then be reported as the value of the Processes using handles above limit measure.

Ignore Processes in DD

The detailed diagnosis of the Processes using handles above limit measure reveals the top-10 processes that are using handles above the configured limit and the number of handles used by each process. If the Show Sub Handles in DD flag is set to Yes, then the detailed diagnosis will additionally display the break-up of the handle count by sub-handles (i.e., the count of file handles, disk handles, etc.). For processes that typically open thousands of handles, storing granular, sub-handle-level information pertaining to these handles may impose additional strain on the eG database. In such cases, you can reduce the strain on the eG database by configuring in the Ignore Processes in DD text box, a comma-separated list of process names/process patterns for which sub-handle-wise breakup need not be collected and stored in the eG database. The default value in this text box is *ccSvcHst.exe*. This implies that, by default, the detailed diagnosis of the Processes using handles above limit measure will only provide the total number of open handles for ccSvcHst.exe process, but not the sub-handle-level information. If required, you can choose to exclude the sub-handle-wise breakup from the detailed diagnosis for more processes by including these process names/patterns as part of the Ignore Processes in DD specification. For instance, your specification can be: *ccSvcHst.exe*,*js.exe*,*java.exe*:

Show Sub Handles in DD

By default, this flag is set to No indicating that this test will not report sub-handle details as part of its detailed diagnostics. This setting will help you to conserve space in the eG database. However, you can set this flag to Yes if you want to see the sub-handles opened by each of the top-10 processes in the detailed diagnosis.

Measurements made by the test
Measurement Description Measurement Unit Interpretation

Handles used by processes

Indicates the number of handles opened by various processes running in a target Azure virtual desktop in the last measurement period.

Number

Use the detailed diagnosis of this measure to determine the top-10 processes in terms of number of handles opened. This information brings to light those processes with too many open handles. By closely tracking the handle usage of these processes over time, you can identify potential handle leaks.

Processes using handles above limit in the VM:

Indicates the number of processes that have opened the handles on or above the value defined in the input parameter - HANDLES GROWTH LIMIT.

Number

Using the detailed diagnosis of this measure, you can accurately isolate the process(es) that has opened more handles than the permitted limit.

A high value of this measure indicates that too many processes are opening handles excessively. You might want to closely observe the handle usage of these processes over time to figure out whether the spike in usage is sporadic or consistent. A consistent increase in handle usage could indicate a handle leak.

The detailed diagnosis of the Handles used by processes measure, if enabled, lists the names of top-10 processes in terms of handle usage, the application that spawned each process, the number of handles each process uses, the process ID, and the ID of the parent process.

Figure 2 : Detailed diagnosis of the Handles used by processes measure