I'm searching for IIS app pool memory usage on the web but I can not get any result like I want. I am wondering how can I get specific app pool CPU size in C#?
PS: I tried to start/stop app pool and it works but I don't know how can I access cpu usage.
Process status (memory usage/CPU usage) can be queried via Process
class.
To glue with IIS, you need to use Microsoft.Web.Administration
API to get worker process information from an application pool.
This API is not an extra library, but shipped with Windows as part of IIS 7 and above (%windir%\\system32\\inetsrv\\Microsoft.Web.Administration.dll).
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.