How do I see currently executing web request on IIS 8

前端 未结 4 1128
慢半拍i
慢半拍i 2020-12-04 18:58

In IIS 7, I would click on \"worker process\" then \"View Current Request\" to see all the requests currently being executed.

http://technet.microsoft.com/en-us/libr

相关标签:
4条回答
  • 2020-12-04 19:37

    I had to do this from an elevated command line

    %windir%\system32\inetsrv\appcmd list requests 
    

    If you want to see requests exceeding more than 5 seconds

    %windir%\system32\inetsrv\appcmd list requests /elapsed:5000
    

    In a loop (assuming you are in %windir%\system32\inetsrv\

    for /l %x in (,,) do (appcmd list requests /elapsed:5000 & timeout 2)
    
    0 讨论(0)
  • 2020-12-04 19:43

    The required features can be installed with PowerShell.

    IIS Manager:

    Install-WindowsFeature Web-Mgmt-Tools
    

    Request Monitor:

    Install-WindowsFeature Web-Request-Monitor
    

    With these features installed, run IIS Manager, browsing to the Worker Processes section shown in the screenshot below. From the list of Worker Processes, either double click on the process of interest to view currently executing requests or use the right-click context menu.

    enter image description here

    The back/forward arrows to the left of the address bar can be used to navigate back and forth between the list of requests and worker processes. The alt+left arrow / alt+right arrow keys perform the same actions.

    0 讨论(0)
  • 2020-12-04 19:48

    There wasn't any UI hints, but was able to turn it on as a feature under server manager.

    Server Manager -> Add Roles.

    • Web Server (IIS)
      • Web Server
        • Health and Diagnostics
          • Request Monitor
    0 讨论(0)
  • 2020-12-04 19:50

    This show's the steps to install it. From https://portal.ektron.com/KB/10396/:

    To run it after it's installed you will need to find the "Worker Process" icon on the server settings in IIS Manager.

    enter image description here

    Another good option with ASP.net is to go to task manager, right click on the process and select "Create Dump File" then download and double click on the created .dmp file to load it into Visual Studios debugger. Then look thru the threads and their call stacks to see where all the requests are being executed. This method allows you to see exactly what the requests are doing (infinite loops, deadlocks, etc.)

    0 讨论(0)
提交回复
热议问题