Some content on this site is available only to logged-in subscribers. Contact Us for information on becoming a subscriber.

InSource.Solutions | InSource Training | InSource Client Portal
InSource Solutions Logo
Log In Sign Up
InSource.Solutions InSource Training InSource Client Portal Log In Sign Up
  • Home
  • AVEVA Application Server
  • AVEVA Application Server Tech Notes

TN AppSvr104 Capturing CPU load in Archestra script

Last updated: March 6th, 2025

Description

  • Author: Joe Hefner
  • Published: March 6th, 2025

Details:

Description

When a computer has a platform deployed to it you can usually monitor the CPULoad by simply looking at the CPULoad field for the platform in question. An alternative approach would be to use a performance counter to get a view into the CPULoad. The script below is an example of how this can be done.

  • Author: Joe Hefner
  • Published: 10/14/2014
  • Applies to: Application Server 3.1 and higher

Instructions

The sample script above can be copied from below if desired:

dim cpuCounter as System.Diagnostics.PerformanceCounter;
cpuCounter = new System.Diagnostics.PerformanceCounter();
cpuCounter.CategoryName = "Processor";
cpuCounter.CounterName = "% Processor Time";
cpuCounter.InstanceName = "_Total";

cpuCounter.NextValue();
System.Threading.Thread.Sleep(1000);
LogMessage( "CPU usage: " + cpuCounter.NextValue()+"%");

Confirmation of Success

Check Message Log in System Management Console

monitoring cpu archestra script
Give feedback about this article

Recommended articles

TN 1242 Aveva Historian Storage Locations and Best Practices

Read More
Support Icon

CONTACT SUPPORT

How to reach us

10800 Midlothian Turnpike Tpke, Suite 209, Richmond, VA 23235

1.877.INSOURCE

Technical Support - 1.888.691.3858

Contact Us

  • InSource Solutions
  • InSource Training
  • InSource Client Portal
  • Log In
InSource Solutions Logo

© 2025 InSource Solutions. All Rights Reserved.

Knowledge Base Software powered by Helpjuice

Expand