简体   繁体   English

如何跟踪IIS工作进程请求

[英]How to trace IIS worker process requests

I need to be able to monitor requests from IIS w3wp processes. 我需要能够监视来自IIS w3wp进程的请求。

How can I see IIS worker process Requests? 如何查看IIS工作进程请求?

To trace all requests currently executing in IIS worker processes 跟踪当前在IIS工作进程中执行的所有请求

  • Open a command window and type logman startsession name–p "IIS: Request Monitor" -ets and press ENTER . 打开命令窗口并键入logman startsession name–p "IIS: Request Monitor" -ets ,然后按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 Windows事件跟踪打印到您刚刚启动的跟踪会话的屏幕详细信息,包括会话名称,将收集跟踪数据的文件名(默认情况下为session name.etl),以及命令是否为成功
  • 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 . 在命令提示符下,键入logman stopsession name-ets ,然后按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?). 我在Windows vs Linux上没有经验,所以Ravindra的答案似乎很有意思(这只是安排一个特定的事件查看器样式会话或实际更深入地注销?)。

As you particularly ask about 'IIS worker process Requests' you have two options. 正如您特别询问“IIS工作进程请求”,您有两种选择。

GUI GUI

Open inetmgr, go to the root server level, go to Worker Processes and double-click the worker process of your choice. 打开inetmgr,转到根服务器级别,转到Worker Processes并双击您选择的工作进程。 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 而不只是给你一个命令来复制和粘贴这篇文章是一个很好的启动 - 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' 您想要的特定命令位于“检查当前执行请求”部分下

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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