简体   繁体   English

在经典ASP中获取IIS详细信息

[英]GET IIS detail in Classic ASP

I have been looking a function in Classic ASP. 我一直在寻找经典ASP中的功能。 So When the page is loaded, it will show the following information: - Active application pool name: (if possible should show the active IIS application pool name for example.com) - Private bytes in use: (should show the private bytes for the active application pool) - Virtual bytes in use: (should show the virtual bytes for the active application pool) 因此,在加载页面时,它将显示以下信息:-活动应用程序池名称:(如果可能,应显示example.com的活动IIS应用程序池名称)-使用中的专用字节:(应显示活动应用程序池)-正在使用的虚拟字节:(应显示活动应用程序池的虚拟字节)

Thanks, Ravi 谢谢,拉维

There is no function in classic ASP which can provide you this. 经典ASP中没有可以提供此功能的功能。 However you can use WMI providers for IIS and call them from your classic ASP page. 但是,您可以将WMI提供程序用于IIS,并从经典的ASP页中调用它们。

From this article, we know that: 这个文章中,我们知道:

IIS 7 lists worker processes with associated application pool names, and provides the following information for each worker process: IIS 7列出了具有相关应用程序池名称的工作进程,并为每个工作进程提供了以下信息:

  • Application Pool Name . 应用程序池名称 The name of the application pool. 应用程序池的名称。 In the case of Web gardens, the same application pool may be listed more than once in the grid to account for different worker processes running in the application pool. 对于Web花园,同一应用程序池可能会在网格中多次列出,以说明应用程序池中运行的不同工作进程。

  • Process ID . 进程ID The worker process identifier (ID) associated with the application pool. 与应用程序池关联的工作进程标识符(ID)。

  • State . 状态 The state of the process, such as starting, running, or stopping. 进程的状态,例如启动,运行或停止。

  • CPU % . CPU% The percentage of time that the worker process has used the CPU since last update. 自上次更新以来,工作进程使用CPU的时间百分比。 This corresponds to CPU Usage in Task Manager. 这对应于任务管理器中的CPU使用率

  • Private Bytes (KB) . 专用字节(KB) The current size of memory committed to a worker process, which cannot be shared with other processes. 提交给工作进程的当前内存大小,无法与其他进程共享。 This corresponds to Virtual Memory Size in Windows Task Manager. 这对应于Windows Task Manager中的虚拟内存大小。

  • Virtual Bytes (KB) . 虚拟字节(KB) The current size of the virtual address space for a worker process. 辅助进程的虚拟地址空间的当前大小。 This does not correspond to anything in Windows Task Manager. 这与Windows Task Manager中的任何内容都不对应。

NOTE : This requires the RequestMonitorModule to be installed 注意 :这需要安装RequestMonitorModule

You will need to use the following WMI classes: 您将需要使用以下WMI类:

Refer this link on how to get started on calling WMI in an ASP page: 有关如何开始在ASP页上调用WMI的信息 ,请参考以下链接:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM