At least on my Windows Server 2008 R2 with IIS 7.5, the performance counter category is called "Microsoft FTP Service" and not "FTP Service". It may be different for different OS / IIS versions, but it is easy to verify.
On your target server / machine:
- Launch Performance Monitor
- Click "Performance Monitor in the left navigation bar.
- Click the plus sign to add a performance counter.
- Scroll through the list of available counters. Check FTP or Microsoft FTP to see if it exists ... note that if you do not have Microsoft FTP services installed, you wonβt see the performance counter.
- After that, select it and you will see a list of specific counter instances that you can request. One such case is the "_Total" that you were interested in.
Of course, this also proves that the performance counter works regardless of your code. This is a good thing to know!
For specific recommendations on working with Performance Counters in C # /. NET, see this column column .
Benway
source share