在打开perfmon日志记录之前,如何保证w3wp进程存在?

[英]How can I guarantee the w3wp process exists before turning on perfmon logging?


I have a batch script I run before our performance tests that does some pre-test setup on our server; it clears log files, starts the proper services, restores the database, sets some app settings and turns on perfmon logging.

我在我们的性能测试之前运行了一个批处理脚本,它在我们的服务器上进行了一些预测试设置;它清除日志文件,启动正确的服务,恢复数据库,设置一些应用程序设置并打开perfmon日志记录。

My problem; the w3wp process we need to monitor is not always present at the time we turn on perfmon logging. It's pretty much hit-or-miss if this process is in the log. The test takes anywhere from 4 to 18 hours to complete, and I don't know until the test is done whether or not w3wp was monitored (it doesn't seem that perfmon detects new processes even though my log file is configured to monitor Process(*)), which ends up wasting a lot of time.

我的问题;在我们打开perfmon日志记录时,我们需要监视的w3wp进程并不总是存在。如果此过程在日志中,那么它几乎可以被击中。测试需要4到18个小时才能完成,直到测试完成后我才知道w3wp是否受到监控(即使我的日志文件配置为监视进程,perfmon似乎也没有检测到新进程(*)),最终浪费了很多时间。

  1. Is there a way to force w3wp to get loaded? Is there some command I can call just prior to starting the perfmon logs?
  2. 有没有办法强迫w3wp加载?在启动perfmon日志之前是否可以调用一些命令?

  3. Or, is it possible to configure the perfmon log to monitor processes that may not exist at the time the log is started?
  4. 或者,是否可以配置perfmon日志来监视日志启动时可能不存在的进程?

1 个解决方案

#1


If you install the IIS Admin tools, you can call a command line app called TinyGet. You can pass in any page on your webserver to initialize it. This would start up the process so you can capture it.

如果安装IIS Admin工具,则可以调用名为TinyGet的命令行应用程序。您可以传入Web服务器上的任何页面进行初始化。这将启动该过程,以便您可以捕获它。

智能推荐

注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.itdaan.com/blog/2009/03/27/7dee39ab4840f2a3096043ac540a0911.html



猜您在找
VS 2008可以在建立项目之前杀死w3wp吗? - Can VS 2008 kill w3wp before building a project? How to view the W3WP process by c#? W3WP进程CPU查看 .net 附加W3wp进程 IIS的w3wp进程为什么自动关闭
智能推荐
 
© 2014-2019 ITdaan.com 粤ICP备14056181号  

赞助商广告