问题描述
我想展示一些内存统计数据(工作集,GCS等)使用.NET /工艺性能计数器在网页上。不幸的是,如果有服务器上的多个应用程序池,他们使用一个索引(#1,#2等)的区别,但我不知道如何搭配一个进程ID(我有)到#XX指数。有没有一种编程方式(从ASP.NET网页)?
I would like to display some memory statistics (working set, GCs etc.) on a web page using the .NET/Process performance counters. Unfortunately, if there are multiple application pools on that server, they are differentiated using an index (#1, #2 etc.) but I don't know how to match a process ID (which I have) to that #xx index. Is there a programmatic way (from an ASP.NET web page)?
推荐答案
先打在谷歌:
:
默认情况下,性能监视器
(Perfmon.msc)显示多个
具有由相同名称的进程
列举的过程
下列方式:
流程#1#处理工艺2#3
Process#1 Process#2 Process#3
性能监视器还可以显示
这些过程通过附加
进程ID(PID),以在名
下列方式:
Performance Monitor can also display these processes by appending the process ID (PID) to the name in the following way:
Process_PID
Process_PID
这篇关于获取性能计数器实例名称(W3WP#XX)从ASP.NET工作进程ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!