When you install View Agent on an RDS host, the installer places sample load balancing scripts in the View Agent scripts directory (C:\Program Files\VMware\VMware View\Agent\scripts).
|cpuutilisation.vbs||Reads the percentage of CPU that has been utilized from the registry and returns the following load values:
|memoryutilisation.vbs||Calculates the percentage of memory that has been utilized and returns the following load values:
Note: Because the cpuutilisation.vbs script uses rolling average data that is sampled every five minutes, short-term high-utilization events might not be reflected in reported load preferences. You can reduce the sampling period to a minimum of two minutes, but performance might be affected on the RDS host. The sampling interval is controlled by the registry entry HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.\VMware VDM\Performance Stats\SamplingIntervalSeconds. The default is 300 seconds.