Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We are having problems with performance on our server that host our websites that the processor gets upp to 90%. I would like to monitor the amount of users active on your sites that are published on the iis. My question, is this possible? is there any software for this?

EDIT current (like this second) visitor count on all the active websites on our iis

if i can get the visitor amount on the days the CPU is not overloaded and and compare it to the days it is then i atleast know that this CAN be a reason why this is happening and i can take it from there. Otherwise i can focus on the code on the sites, or maybe google crawler is causing this, there are manythings that can cause this you know? for me this is just a simple way of troubleshooting.

share|improve this question
How is knowing the number of active users/connections going to help you resolve the CPU utilization problem? – joeqwerty Mar 20 '12 at 10:35
Step 1: Define "user". – womble Mar 20 '12 at 10:40
@womble Website visitor – Dejan.S Mar 20 '12 at 10:59
Step 2: Define "Website visitor". Seriously, it is very hard to accurately capture what set of requests constitute one visitor. Most people stick with a much simpler metric like "page views". – womble Mar 20 '12 at 11:00
Again, how are you going to correlate the number of visitors to the CPU utilization? How will you know how many visitors is too many? Is there a metric or formula for calculating that? It's like asking how many bunnies can be supported by x number of carrots, without knowing how many carrots a single bunny consumes. – joeqwerty Mar 20 '12 at 11:07

This isn't an exact count for how many users are currently on the site, but it's a metric that we consider close enough for what you're after. We use the performance counter 'Web Service\Current Connections'.

When a user initially hits your site their browser will most likely open up 5 or 6 connections but that will probably settle down to 1 once they've loaded the images/scripts etc (that's what we've found anyway).

share|improve this answer
powershell script to get current value per iis web site: – Mathieu Chateau Apr 2 '12 at 17:51

You can turn on IIS Request Tracing, and/or monitor Worker Processes under Health and Diagnostics (if you're using W2K8/IIS7x) and combined with detailed logging being enabled, should tell you how many requests you're currently serving and the logging (with a W3C log parser, Google it) will give you an aggregate over a period of time.

If you're using IIS 6/Windows 2003, you can use perfmon and add whatever IIS-related counters you want and leave it running.

share|improve this answer

If this is iis7 you can try using appcmd.

%systemroot%\system32\inetsrv\APPCMD list requests

It will show active iis connections.

II6 has a vbs script called iisweb.vbs that did similar. I've never used it so I don't know where it's located.

iisweb.vbs /query

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.