简体   繁体   中英

How to check load on windows server by using C# coding?

I have 6 windows servers, those are working on different locations.

i need to check load on each server from one Server by using C# coding.

Thanks in advance.

I guess you can use the PerformanceCounter class from the System.Diagnostics namespace. It has the following constructor:

public PerformanceCounter(
    string categoryName,
    string counterName,
    string instanceName,
    string machineName
)

You can see a simple example on this page .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM