Ravi,
You want to take a look at the PerformanceCounter class in the
System.Diagnostics namespace and access the appropriate performance counters
for the machine and IIS.
I don't know that IIS has a specific counter for CPU usage (you will
have to look), but you should be able to get IIS's memory usage.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Ravi" <Ra**@discussions.microsoft.comwrote in message
news:53**********************************@microsof t.com...
How to fetch the CPU and Memory usage of IIS in C#?
Thank you in advance.
Regards, Ravi