使用 perfmon 记录应用程序池的内存使用情况

发布于 2024-09-14 02:10:54 字数 424 浏览 5 评论 0原文

我正在尝试使用 perfmon 审核应用程序的内存使用情况。默认情况下,perfmon 中的应用程序池进程类似于 w3wp.exe #1、w3wp.exe #2... Microsoft 有一篇知识库文章 http://support.microsoft.com /default.aspx?scid=kb;EN-US;281884 它展示了如何将 PID 与进程关联起来。但是当应用程序池被回收时,PID会发生变化。

是否可以为每个应用程序池分配静态 PID,使其在回收后永远不会改变?还有其他方法可以将应用程序池名称与 perfmon 中的进程关联起来吗?我正在尝试记录每个应用程序池的进程/工作集(内存)。

I am trying to audit memory usage of applications using perfmon. The application pool processes in perfmon by default looks like w3wp.exe #1, w3wp.exe #2...
Microsoft has a KB article http://support.microsoft.com/default.aspx?scid=kb;EN-US;281884
which shows how to associate PID's to processes. But PID's change when an application pool is recycled.

Is it possible to assign static PID's for each application pool which never change after recycle? also is there any other way to associate applicationpool name to a process in perfmon. I am trying to log Process/Working Set(memory) for each application pool.

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

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

发布评论

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

评论(1

入画浅相思 2024-09-21 02:10:54

无法使用静态 PID - 它们是在进程启动时由操作系统分配的。回收必然会关闭该进程并启动一个新进程,从而为其提供一个新的 PID。

另请参阅有关 PID 的问题

There's no way to use a static PID - they're allocated by the O/S when a process starts. Recycling necessarily shuts down the process and starts a new one, which gives it a new PID.

See also this question about PIDs

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