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

发布于 2024-07-15 20:13:36 字数 420 浏览 4 评论 0原文

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

我的问题; 当我们打开 perfmon 日志记录时,我们需要监视的 w3wp 进程并不总是存在。 如果此过程记录在日志中,则几乎是偶然的。 该测试需要 4 到 18 小时才能完成,并且在测试完成之前我不知道 w3wp 是否受到监视(即使我的日志文件配置为监视 <,perfmon 似乎也没有检测到新进程) code>Process(*)),这最终会浪费大量时间。

  1. 有没有办法强制加载w3wp? 在启动 perfmon 日志之前我可以调用一些命令吗?
  2. 或者,是否可以配置 perfmon 日志来监视日志启动时可能不存在的进程?

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.

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.

  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. Or, is it possible to configure the perfmon log to monitor processes that may not exist at the time the log is started?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

比忠 2024-07-22 20:13:36

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

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文