Interviewer - Server > Monitoring and tuning system performance > Load balancing interviewing engines > Examples of UNICOM Intelligence Interviewer load balancing algorithms > Setting PercentLoaded based on engine memory usage
 
Setting PercentLoaded based on engine memory usage
Note This example is included for information only and is not recommended for production work.
This example algorithm sets PercentLoaded based on the amount of memory being used in comparison to the amount of system memory. If you test the algorithm on a large project, you should see that the value of PercentLoaded increases as engine memory increases.
Dim availableMEM, EngineMEM
availableMEM = System.TotalPhysical + System.TotalVirtual
EngineMEM = Process.MemoryUsage + Process.VirtualMemoryUsage
PercentLoaded = (100 * EngineMEM) / availableMEM
See also
Examples of UNICOM Intelligence Interviewer load balancing algorithms