Windows OS Hub
  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange

 Windows OS Hub / Windows Server 2008 R2 / How to Monitor Active Sessions on IIS

May 29, 2015 Windows Server 2008 R2

How to Monitor Active Sessions on IIS

How to quickly estimate the current number of user sessions on the IIS website running on Windows Server? Such information will allow to determine and predict the load on the server, choose the best time for the maintenance and updates of the website.

The easiest way to determine the number of active user sessions on the IIS Web site using performance counters in Windows Performance Monitor.

Open the Performance Monitor console by running the perfmon command and go the Performance monitor section (Monitoring Tools — > Performance Monitor).

Then you have to add the necessary counters to the monitor window. (By default, the general CPU load counter is displayed, but you can remove it.) To add a new counter, click the green button on the toolbar (you can see it on the screenshot) or press Ctrl+N on the keyboard.

Windows Performance Monitor

In the list of available counters, find and expand the Web Service group.

Web-Service counters

We need two counters here:

  • Current Anonymous Users is the number of anonymous IIS users
  • Current Non-Anonymous Users is the number of authorized IIS users

Select the desired counter and in the Instances of selected objects choose one or more IIS websites, for which you want to display information. The information about users of all websites on the server is stored in the _Total instance. Now you only have to click the Add >> button to move the counter to the list of the counters to be added in the right pane. IIS Current Anonymous Users counter

Add all the necessary counters in the same way and click OK.

Monitoring Active Users Sessions on IIS site

Now in the Performance Manager console, the information about the number of user sessions is displayed in the real time (by default, the counter values are displayed as linear diagrams). If you select any of the counters in the bottom pane, you can view its last, average, minimum or maximum value for a period of time.

You can add custom performance counters to this console and save them in a single view, which can be used to quickly access the web server load data.

You can access the performance counter data from Powershell.

The list of all available Web Service counters can be displayed as follows:

(Get-Counter -ListSet 'Web Service').counter

Powershell: Get-Counter

To get information about the current number of anonymous users (the counter \Web Service(*)\Current Anonymous Users), use this command:

Get-Counter -Counter “\Web Service(*)\Current Anonymous Users”

Tip

  • The values of several counters can be displayed if you specify them separated by the commas
  • With the –Continuous key, the information about the value of the counter is constantly displayed in the console till you interrupt the process using CTRL+C

Another variant:

Get-wmiObject -class Win32_PerfRawData_W3SVC_WebService | select-object -expand currentanonymoususers

0 comment
0
Facebook Twitter Google + Pinterest
previous post
How to Repair a Corrupt Outlook PST File with Scanpst
next post
Windows 8: winload.efi is Missing or Damaged

Related Reading

Windows Update Error 0x80244022 and WsusPool Memory Limit

December 8, 2017

How to Create Scheduled Task Using PowerShell

October 26, 2017

Windows.edb File Too Big – How to Reduce...

October 5, 2017

Fix: Server Stuck on “Preparing to Configure Windows”

September 27, 2017

Monitoring RDS Bandwidth Usage by Users with Perfmon

August 17, 2017

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange
  • Windows 10
  • Windows 8
  • Windows 7
  • Windows Server 2016
  • Windows Server 2012 R2
  • Windows Server 2008 R2
  • PowerShell
  • VMWare
  • MS Office

Recent Posts

  • Installing a Let’s Encrypt Free SSL Certificate on IIS in Windows Server 2012 R2

    April 19, 2018
  • How to Disable “Open File Security Warnings” in Windows 10, 8 and 7

    April 18, 2018
  • Outlook 2016: Manual Setup Exchange Account

    April 16, 2018
  • Cannot Access SMB Network Shares after Windows 10 1709 Upgrade

    April 12, 2018
  • Installing KMS Server on Windows Server 2012 R2

    April 11, 2018
  • How to Clear Pagefile.sys at Shutdown in Windows 10 / 8 / 7

    April 10, 2018
  • Searching AD Groups and Users using Wildcards

    April 5, 2018
  • How to access VMFS Datastore from Linux, Windows and ESXi

    April 3, 2018
  • SMB 1.0 Support in Windows Server 2012 R2 / Windows Server 2016

    April 2, 2018
  • Securing Administrative (Priveleged) Accounts in Active Directory

    March 27, 2018
woshub.com

Follow us

  • Facebook
  • Twitter
  • RSS
Popular Posts
  • How to Filter Event Logs by Username in Windows 2008 and higher
  • Remote Desktop Connection Error: Outdated entry in the DNS cache
  • Unable to Install Print Driver after KB3170455
  • Disable Creating Thumbs.db on Network Folders
  • How to Get Plain Text Passwords of Windows Users
  • Windows Event Triggers
  • Fixing High Memory Usage by Metafile on Windows Server 2008 R2
Footer Logo

@2014 - 2018 - Windows OS Hub. All about operating systems for sysadmins


Back To Top