AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 132928
In Process
frankadelic
frankadelic
Asked: 2010-04-16 15:26:41 +0800 CST2010-04-16 15:26:41 +0800 CST 2010-04-16 15:26:41 +0800 CST

Perfmon:哪个计数器标识线程正在等待?

  • 772

在对 ASP.NET 应用程序进行负载测试时,我们发现页面在高负载下需要 20-30 秒。

我们怀疑这是因为页面正在等待数据库调用或 Web 服务。

是否有特定的性能计数器可以识别 Web 服务器上的这种瓶颈?CPU、内存、磁盘正常。

还是我们必须使用 perfmon 以外的工具来追踪这个瓶颈?

iis asp.net perfmon performance-monitoring
  • 1 1 个回答
  • 4911 Views

1 个回答

  • Voted
  1. Guido van Brakel
    2011-05-21T08:45:02+08:002011-05-21T08:45:02+08:00

    如果您怀疑特定应用程序或服务导致内存泄漏,请使用以下计数器调查应用程序的内存使用情况:

    Memory\Available Bytes reports available bytes; its value tends to fall during a memory leak.
    Memory\Committed Bytes reports the private bytes committed to processes; its value tends to rise during a memory leak.
    Process\Private Bytes reports bytes allocated exclusively for a specific process; its value tends to rise for a leaking process.
    Process\Working Set reports the shared and private bytes allocated to a process; its value tends to rise for a leaking process.
    Process\Page Faults/sec reports the total number of faults (hard and soft faults) caused by a process; its value tends to rise for a leaking process.
    Process\Page File Bytes reports the size of the paging file; its value tends to rise during a memory leak.
    Process\Handle Count reports the number of handles that an application opened for objects it creates. Handles are used by programs to identify resources they must access. The value of this counter tends to rise during a memory leak; however, you cannot rule out a leak simply because this counter's value is stable.
    

    内存泄漏和非分页池

    尽管任何泄漏都很严重,但当涉及非分页池时,内存泄漏尤其值得关注。许多系统服务从非分页池中分配内存,因为它们在处理中断时需要引用它,并且此时不能发生页面错误。要确定泄漏是否影响非分页池,请在您的监控中包括以下计数器:

    Memory\Pool Nonpaged Bytes
    Memory\Pool Nonpaged Allocs
    Process\Pool Nonpaged Bytes
    

    如何识别:泄漏的应用程序不断地请求更多内存。它的特点是进程/页面文件字节以与系统提交字节相同的速率增加;即所有内存承诺都归因于一个进程。可用字节稳步减少,直到系统将某些内容分页,然后虚拟字节增加以为更多可用字节腾出空间。当部分被分页时,泄漏应用程序的工作集实际上会减少。请注意页面错误/秒如何随着可用字节的下降而增加。

    Windows 资源工具包包括一个名为 LeakyApp.exe 的示例程序。这个程序有一个典型的错误是不断分配越来越多的内存。

    • 2

相关问题

  • 2003 Server企业版不能运行ASP.NET应用程序?

  • 启用集成 Windows 身份验证时,ASP(经典)在哪个帐户下运行?

  • 是否有一种简单的方法可以生成有关 IIS 中“死”文件的报告?

  • IIS 7 中的 URL 重写

  • 对于 ASP.Net 应用程序,Windows 64 位相对于 32 位的主要优势是什么?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    从 IP 地址解析主机名

    • 8 个回答
  • Marko Smith

    如何按大小对 du -h 输出进行排序

    • 30 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    MikeN 在 Nginx 中,如何在维护子域的同时将所有 http 请求重写为 https? 2009-09-22 06:04:43 +0800 CST
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    0x89 bash中的双方括号和单方括号有什么区别? 2009-08-10 13:11:51 +0800 CST
  • Martin Hope
    Kyle Brandt IPv4 子网如何工作? 2009-08-05 06:05:31 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve