简体   繁体   中英

How to trace IIS worker process requests

I need to be able to monitor requests from IIS w3wp processes.

How can I see IIS worker process Requests?

To trace all requests currently executing in IIS worker processes

  • Open a command window and type logman startsession name–p "IIS: Request Monitor" -ets and press ENTER .
  • Event Tracing for Windows prints to the screen details about the trace session you just started, including the name of the session, the file name where the trace data will be collected (session name.etl by default), and whether or not the command was successful
  • Allow the trace session to run until you have reproduced the problem or until your sites have processed enough requests to produce a manageable data set
  • From the command prompt, type logman stopsession name-ets and press ENTER .

I'm not as experienced on Windows vs Linux so Ravindra's answer seems interesting (is this just scheduling a particular event viewer style session or actually logging out deeper?).

As you particularly ask about 'IIS worker process Requests' you have two options.

GUI

Open inetmgr, go to the root server level, go to Worker Processes and double-click the worker process of your choice. A new screen will load and you will see anything that worker is currently processing.

Command-line

Rather than just give you a single command to copy and paste this article is a great starter - http://www.iis.net/learn/get-started/getting-started-with-iis/getting-started-with-appcmdexe

The particular command you want is under the section 'INSPECTING CURRENTLY EXECUTING REQUESTS'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM