English 中文(简体)
通过虚拟目录了解如何消耗资源
原标题:Get know to consumed resources by a virtual directory

我在不同的网站的IIS上有许多应用程序。 其中一些在使用4个核心, 有些在使用4个核心, 有些在只使用1个 CPU 核心 。 要将它分解成不同的应用程序集合( 名为 4. 0Framework_ 1CPU, 3. 3.5Framework_ 4CPU 等)

我要知道哪个虚拟目录消耗了多少公羊、 cpu、 磁盘实时时间。 我如何从程序上获取这些信息来发出警告?

问题回答

AFAIK 无法监测单个虚拟目录所消耗的资源,尽管对于运行.NET Forum 4 的应用池,您可以通过允许 < a href=" http://msdn.microsoft.com/ en-us/library/ system.apdomain. controlispacted.aspx?querygres= true" rel="nolfollow" >AppDomain。 监测 属性 < 来监测个人应用。

对于运行旧版.NET框架的应用池,您只能根据每个进程(每个应用池)来监测资源。为此,您可以使用System.Web.Meb.management rel=“noform < a href=” (特别是 < a href="http://msdn.microsoft.com/ en-us/library/system.diagnostics.com/en-us/library/ systems.diagnostics.preforceer.aspx" rel=“nofolpolvey>> >PerforprofanceCounter s。



上一篇:
下一篇:


相关问题
Session Management with Windows Authentication

In an ASP.NET web app, using Integrated Windows Authentication, is the session tied to the windows identity? In other words, if I login (using IWA) to the app, and the app stores some "stuff" in my ...

Using Elmah with Cassini

Does anyone know if I can use Elmah with Visual Studio build-in web server(aka Cassini)? I get it working easily on IIS, but using same configuration, it doesn t work with Cassini. When I requested ...

Setting hostname in IIS, include www?

I want to set the hostname for a website I m adding in IIS 7, however do I include the www in the hostname or not? because I want both www.mysite.com and mysite.com both to point to mysite on the ...

inetpub versus any other folder

I ve run websites out of inetpub, as well as from folders just residing on the C: drive. I wonder, are there any definitive advantages to running websites out of inetputwwwroot?

IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

热门标签