销售电话: 1-800-867-1380

Azure 角色中缓存疑难解答和诊断

更新时间: 2015年5月

note备注
有关为你的应用程序选择合适的 Azure 缓存产品/服务的指导,请参阅 哪种 Azure Cache 产品/服务适合我?

角色中缓存应用程序是为使用诊断级别进行诊断数据收集而配置的。此诊断级别为配置数据收集级别提供了单一设置。本主题概述了对 角色中缓存应用程序进行疑难解答的疑难解答步骤和诊断。

在 Azure 上运行的应用程序是分布广泛且多实例的应用程序,可能很难进行调试。这些类型的应用程序需要除标准工具和方法以外的工具和方法进行疑难解答。对 Azure 应用程序进行疑难解答超出了本主题的范围,但可在 Azure 中的诊断和调试中找到相关详细信息。此主题介绍经过验证的疑难解答做法,并包含指向更密集的信息和最佳做法的链接。有关如何在收集诊断数据后进行查看的详细信息,请参阅在 Azure 存储中存储和查看诊断数据

将 角色中缓存应用程序配置为收集用于疑难解答的诊断数据需要配置诊断级别以及在角色启动过程中配置缓存诊断。本主题概述了对 角色中缓存应用程序进行疑难解答的以下步骤。

角色中缓存提供了五个诊断级别,可用于配置诊断数据收集量。诊断级别的范围为 0 至 4,数字表示为缓存服务器和客户端收集的诊断信息量。每个诊断级别均包含一组预配置的性能计数器、事件日志、跟踪和故障转储设置,这些设置可用来监视 角色中缓存应用程序的健康状况。

 

诊断级别 所收集的诊断数据

0

仅限非常关键/灾难性的服务器日志。

1

可帮助评估使用模式、缓存系统健康状况和任何潜在错误的诊断数据。这是默认配置级别。

2

所有请求的细粒度诊断数据和重要系统信息。

3

更详细的诊断数据和系统信息。

4

所有请求的最详细日志和系统信息。

有两种缓存诊断级别,分别对应于缓存客户端和缓存服务器诊断。DiagnosticLevel 表示缓存服务器诊断,ClientDiagnosticLevel 表示缓存客户端诊断。每个级别均配置一组不同的性能计数器、日志、跟踪和故障转储设置。这些诊断级别在应用程序的 ServiceConfiguration.cscfg 文件中进行配置,并且只需部署更新的 ServiceConfiguration.cscfg 文件便可针对正在运行的云应用程序做出更改。

可以在 ServiceConfiguration.cscfg 文件中托管缓存群集的角色的配置部分指定缓存群集的缓存服务器诊断级别。此设置是在角色的“Caching”选项卡中启用了 caching 后由 Visual Studio 添加的,并且在将 Cache Worker Role 添加到项目时已存在。默认的 DiagnosticLevel 为 1,如果角色没有 DiagnosticLevel,则使用的 DiagnosticLevel 为 1。若要更改 DiagnosticLevel,请修改 ServiceConfiguration.cscfg 中角色的 DiagnosticLevel 设置。以下示例是 ServiceConfiguration.cscfg 文件中的 WorkerRole1 节,其中 DiagnosticLevel 为 1。

<Role name="WorkerRole1">
  <Instances count="1" />
  <ConfigurationSettings>
    <!-- Other settings omitted for clarity... -->
    <Setting name="Microsoft.WindowsAzure.Plugins.Caching.DiagnosticLevel" value="1" />
  </ConfigurationSettings>
</Role>

下表列出了为每个诊断级别收集的诊断数据。

 

DiagnosticLevel 收集的数据

0

  • 日志级别:Critical

  • 无性能计数器

  • 不注册事件日志

  • 微型故障转储

1

2

  • 日志级别:Information

  • 服务器诊断级别 2 性能计数器

  • 除了诊断级别 1 的事件日志外,还注册了以下事件日志

    • Azure!*

    • Microsoft-Windows-Application Server-System Services/Admin!*

    • Microsoft-Windows-Application Server-System Services/Operational!*

  • 完全故障转储

3

4

note备注
在 角色中缓存 模拟器中运行 Azure 应用程序时,所有角色实例的跟踪将收集在 *_IN_0 文件夹中,即使存在多个角色实例也是如此。此行为是由设计原因引起的。在 角色中缓存 中托管 Azure 应用程序时,每个角色实例的跟踪位于角色实例的相应文件夹中。

可以在 ServiceConfiguration.cscfg 文件中作为缓存客户端的角色的配置部分指定缓存客户端的 ClientDiagnosticLevel 级别。当角色配置为充当缓存客户端时,将由 角色中缓存 NuGet 程序包添加此设置。

note备注
有关使用角色中缓存 NuGet 程序包配置缓存客户端的详细信息,请参阅Configure a Project for Caching on Roles

默认的 ClientDiagnosticLevel 为 1,如果角色没有 ClientDiagnosticLevel,则使用的 ClientDiagnosticLevel 为 1。若要更改 ClientDiagnosticLevel,请修改 ServiceConfiguration.cscfg 中角色的 ClientDiagnosticLevel 设置。以下示例是 ServiceConfiguration.cscfg 文件中的 WebRole1 节,其中 ClientDiagnosticLevel 为 1。

<Role name="WebRole1">
  <Instances count="1" />
  <ConfigurationSettings>
    <!-- Other settings omitted for clarity... -->
    <Setting name="Microsoft.WindowsAzure.Plugins.Caching.ClientDiagnosticLevel" value="1" />
  </ConfigurationSettings>
</Role>

下表列出了为每个客户端诊断级别收集的诊断数据。

note备注
客户端诊断级别所对应的故障转储设置仅与使用 Memcached 客户端填充程序的缓存客户端有关。对于非 Memcache 客户端,并不会对故障转储进行收集。有关 Memcached 客户端填充程序的详细信息,请参阅Azure 角色中缓存的 Memcache 包装程序

 

ClientDiagnosticLevel 收集的数据

0

  • 日志级别:Critical

  • 无性能计数器

  • 不注册事件日志

  • 微型故障转储

1

2

3

4

note备注
在 角色中缓存 模拟器中运行 Azure 应用程序时,所有角色实例的跟踪将收集在 *_IN_0 文件夹中,即使存在多个角色实例也是如此。此行为是由设计原因引起的。在 角色中缓存 中托管 Azure 应用程序时,每个角色实例的跟踪位于角色实例的相应文件夹中。

用于配置缓存诊断的步骤会因所用的 Azure SDK 版本而异。

使用 Azure SDK 2.5 或更高版本时,使用 diagnostics.wadcfgx 文件配置缓存诊断。使用 Visual Studio 中的“诊断配置”对话框配置诊断时,这些文件会自动添加到你的 Visual Studio 项目中。一个 diagnostics.wadcfgx 文件将添加到参与缓存的每个角色(作为客户端或服务器)中。对于并置缓存角色,客户端和服务器设置将包含在同一 diagnostics.wadcfgx 文件中。有关使用“诊断配置”对话框配置诊断的指南,请参阅为 Azure 云服务和虚拟机配置诊断

使用“诊断配置”对话框配置诊断后,需要注意配置缓存诊断的一些其他注意事项。

应用程序日志在“诊断配置”对话框的“应用程序日志”选项卡中配置。缓存服务器应用程序日志的配置在 diagnostics.wadcfxg 文件的 DataSources 节中配置。

<DataSources>
  <DirectoryConfiguration containerName="wad-custom-logs">
    <LocalResource name="DiagnosticStore" relativePath="AzureCaching\ServiceLogs\Upload" />
  </DirectoryConfiguration>
</DataSources>

缓存服务器客户端应用程序日志的配置使用“诊断配置”对话框的“应用程序日志”选项卡中的设置进行配置。所用的级别是该对话框上的“日志级别”设置和 .cscfg 文件中配置的 ClientDiagnosticLevel 中的较低值。若要收集更高级别的缓存服务器应用程序日志数据,请确保这两个值都设为相应的级别。

生成的性能计数器数据取决于缓存客户端的 Microsoft.WindowsAzure.Plugins.Caching.ClientDiagnosticLevel 和缓存服务器的 Microsoft.WindowsAzure.Plugins.Caching.DiagnosticLevel 中指定的级别。将性能计数器指标传输到存储时,只传输 diagnostics.wadcfxg 文件中列出的指标,如下面的示例 diagnostics.wadcfxg 文件中所示。

<?xml version="1.0" encoding="utf-8"?>
<DiagnosticsConfiguration xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
  <PublicConfig xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
    <WadCfg>
      <DiagnosticMonitorConfiguration overallQuotaInMB="4096">
        <DiagnosticInfrastructureLogs scheduledTransferLogLevelFilter="Error" />
        <Directories scheduledTransferPeriod="PT1M">
          <IISLogs containerName="wad-iis-logfiles" />
          <FailedRequestLogs containerName="wad-failedrequestlogs" />
        </Directories>
        <PerformanceCounters scheduledTransferPeriod="PT1M">
          <PerformanceCounterConfiguration counterSpecifier="\Processor(_Total)\% Processor Time" sampleRate="PT3M" />
          <PerformanceCounterConfiguration counterSpecifier="\Memory\Available MBytes" sampleRate="PT3M" />
          <PerformanceCounterConfiguration counterSpecifier="\Web Service(_Total)\ISAPI Extension Requests/sec" sampleRate="PT3M" />
          <PerformanceCounterConfiguration counterSpecifier="\Web Service(_Total)\Bytes Total/Sec" sampleRate="PT3M" />
          <PerformanceCounterConfiguration counterSpecifier="\ASP.NET Applications(__Total__)\Requests/Sec" sampleRate="PT3M" />
          <PerformanceCounterConfiguration counterSpecifier="\ASP.NET Applications(__Total__)\Errors Total/Sec" sampleRate="PT3M" />
          <PerformanceCounterConfiguration counterSpecifier="\ASP.NET\Requests Queued" sampleRate="PT3M" />
          <PerformanceCounterConfiguration counterSpecifier="\ASP.NET\Requests Rejected" sampleRate="PT3M" />
          <!--Cache Client Performance counters-->
          <PerformanceCounterConfiguration counterSpecifier="\Windows Azure Caching:Client Host\Requests" sampleRate="PT1M" />
        </PerformanceCounters>
        <WindowsEventLog scheduledTransferPeriod="PT1M">
          <DataSource name="Application!*" />
        </WindowsEventLog>
        <CrashDumps>
          <CrashDumpConfiguration processName="WaIISHost.exe" />
          <CrashDumpConfiguration processName="WaWorkerHost.exe" />
          <CrashDumpConfiguration processName="w3wp.exe" />
        </CrashDumps>
        <Logs scheduledTransferPeriod="PT1M" scheduledTransferLogLevelFilter="Verbose" />
      </DiagnosticMonitorConfiguration>
    </WadCfg>
    <StorageAccount />
  </PublicConfig>
  <PrivateConfig xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
    <StorageAccount endpoint="" />
  </PrivateConfig>
  <IsEnabled>true</IsEnabled>
</DiagnosticsConfiguration>
<?xml version="1.0" encoding="utf-8"?>
<DiagnosticsConfiguration xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
  <PublicConfig xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
    <WadCfg>
      <DiagnosticMonitorConfiguration overallQuotaInMB="4096">
        <DiagnosticInfrastructureLogs scheduledTransferLogLevelFilter="Verbose" />
        <Directories scheduledTransferPeriod="PT1M">
          <IISLogs containerName="wad-iis-logfiles" />
          <FailedRequestLogs containerName="wad-failedrequestlogs" />
          <!--Cache Server Logs-->
          <DataSources>
            <DirectoryConfiguration containerName="wad-custom-logs">
              <LocalResource relativePath="." name="DiagnosticStore" />
            </DirectoryConfiguration>
          </DataSources>
        </Directories>
        <PerformanceCounters scheduledTransferPeriod="PT1M">
          <PerformanceCounterConfiguration counterSpecifier="\Processor(_Total)\% Processor Time" sampleRate="PT3M" />
          <PerformanceCounterConfiguration counterSpecifier="\Memory\Available MBytes" sampleRate="PT3M" />
          <PerformanceCounterConfiguration counterSpecifier="\Web Service(_Total)\ISAPI Extension Requests/sec" sampleRate="PT3M" />
          <PerformanceCounterConfiguration counterSpecifier="\Web Service(_Total)\Bytes Total/Sec" sampleRate="PT3M" />
          <PerformanceCounterConfiguration counterSpecifier="\ASP.NET Applications(__Total__)\Requests/Sec" sampleRate="PT3M" />
          <PerformanceCounterConfiguration counterSpecifier="\ASP.NET Applications(__Total__)\Errors Total/Sec" sampleRate="PT3M" />
          <PerformanceCounterConfiguration counterSpecifier="\ASP.NET\Requests Queued" sampleRate="PT3M" />
          <PerformanceCounterConfiguration counterSpecifier="\ASP.NET\Requests Rejected" sampleRate="PT3M" />
          <!--Cache Performance Counter-->
          <PerformanceCounterConfiguration counterSpecifier="\Windows Azure Caching:Host\Total Client Requests" sampleRate="PT1M" />
        </PerformanceCounters>
        <WindowsEventLog scheduledTransferPeriod="PT1M">
          <DataSource name="Application!*" />
        </WindowsEventLog>
        <CrashDumps dumpType="Full">
          <CrashDumpConfiguration processName="WaAppAgent.exe" />
          <CrashDumpConfiguration processName="WaIISHost.exe" />
          <CrashDumpConfiguration processName="WindowsAzureGuestAgent.exe" />
          <CrashDumpConfiguration processName="WaWorkerHost.exe" />
          <CrashDumpConfiguration processName="DiagnosticsAgent.exe" />
          <CrashDumpConfiguration processName="w3wp.exe" />
          <!--Cache Service Dump-->
          <CrashDumpConfiguration processName="CacheService.exe" />
        </CrashDumps>
        <Logs scheduledTransferPeriod="PT1M" scheduledTransferLogLevelFilter="Verbose" />
      </DiagnosticMonitorConfiguration>
    </WadCfg>
    <StorageAccount />
  </PublicConfig>
  <PrivateConfig xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
    <StorageAccount endpoint="" />
  </PrivateConfig>
  <IsEnabled>true</IsEnabled>
</DiagnosticsConfiguration>

若要使用 Azure SDK 2.4 或更低版本启动缓存诊断数据收集,必须在角色启动过程中调用以下代码。要收集缓存诊断数据,必须将此代码添加到作为缓存客户端或缓存服务器的每个角色。托管此代码的一个方便的位置是在角色的 OnStart 重写代码中,如以下示例所示。

Public Overrides Function OnStart() As Boolean

    ' Existing OnStart override code omitted for clarity.

    Dim dmConfig As DiagnosticMonitorConfiguration = _
        DiagnosticMonitor.GetDefaultInitialConfiguration()

    ' Configure the collection of cache diagnostic data.
    CacheDiagnostics.ConfigureDiagnostics(dmConfig)

    DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString", _
        dmConfig)

    Return MyBase.OnStart()

End Function

ConfigureDiagnostics 方法将配置缓存诊断数据的收集过程。如果未调用此方法,则不会收集缓存诊断数据。若要使用 CacheDiagnostics 类,请添加对位于 C:\Program Files\Microsoft SDKs\Azure\.NET SDK\2012-10\ref\Caching 中的 Microsoft.ApplicationServer.Caching.AzureCommon.dll 的引用,并添加以下 using(或 Imports)语句。

Imports Microsoft.ApplicationServer.Caching.AzureCommon
note备注
如果已使用 角色中缓存 NuGet 程序包将角色配置为缓存客户端,则已添加了 Microsoft.ApplicationServer.Caching.AzureCommon.dll 程序集引用。

如果你要向现有角色添加 caching 并且诊断配置代码已存在,则可以在调用 O:Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor.Start 之前,在现有诊断启动代码中添加对 O:Microsoft.ApplicationServer.Caching.AzureCommon.CacheDiagnostics.ConfigureDiagnostics 的调用。

Warning警告
若要在角色中缓存应用程序中收集诊断数据,需要同时调用 O:Microsoft.ApplicationServer.Caching.AzureCommon.CacheDiagnostics.ConfigureDiagnostics):Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor.Start。如果在角色启动期间未同时调用这两个方法,将不收集缓存诊断数据。

以下各节包含每个服务器和客户端诊断级别提供的性能计数器的列表。角色中缓存和 性能计数器均包含在内。有关包含角色中缓存性能计数器的描述的完整列表,请参阅监视 Azure 角色中缓存。有关 性能计数器的详细信息,请参阅 Performance Counters in the .NET Framework

DiagnosticLevel 1 包含以下性能计数器。

  • \Azure Caching:Host\Average Secondary Response Time / operation Microsecond

  • \Azure Caching:Host\Total Data Size Bytes

  • \Azure Caching:Host\Total Client Requests

  • \Azure Caching:Host\Total Read Requests

  • \Azure Caching:Host\Total Object Count

  • \Azure Caching:Host\Total Failure Exceptions

  • \Memory\Available MBytes

  • \Process(CacheService)\Page Faults/sec

    • 在 Azure 模拟器中运行时,计数器名称为 \Process(CacheServiceEmulator)\Page Faults/sec

  • \Processor(_Total)\% Processor Time

  • \.NET CLR Memory(_Global_)\% Time in GC

DiagnosticLevel 2 包含以下性能计数器。

  • \Azure Caching:Host\Average Secondary Response Time / operation Microsecond

  • \Azure Caching:Host\Total Data Size Bytes

  • \Azure Caching:Host\Total Client Requests

  • \Azure Caching:Host\Total Read Requests

  • \Azure Caching:Host\Total Object Count

  • \Azure Caching:Host\Total Failure Exceptions

  • \Processor(_Total)\% Processor Time

  • \.NET CLR Memory(_Global_)\% Time in GC

  • \Azure Caching:Host\Total Read Requests /sec

  • \Azure Caching:Host\Cache Miss Percentage

  • \Azure Caching:Host\Total Primary Data Size Bytes

  • \Azure Caching:Host\Total Allocated Directory Count

  • \Azure Caching:Host\Available Cache Item Percentage

  • \Azure Caching:Host\Total Available Cache Item Count

  • \Azure Caching:Host\Total Notification Delivered

  • \Azure Caching:Host\Total Eviction Runs

  • \Azure Caching:Host\Total Memory Evicted

  • \Azure Caching:Host\Total Evicted Objects

  • \Azure Caching:Host\Total Expired Objects

  • \Azure Caching:Host\Total Requests Served

  • \Azure Caching:Host\Total Write Operations

  • \.NET CLR LocksAndThreads(*)\Contention Rate / sec

  • \.NET CLR Memory(*)\% Time in GC

  • \.NET CLR Memory(*)\Gen 0 heap size

  • \.NET CLR Memory(*)\Gen 1 heap size

  • \.NET CLR Memory(*)\Gen 2 heap size

  • \.NET CLR Memory(*)\Large Object Heap size

  • \Memory\Available MBytes

  • \Process(CacheService)\Page Faults/sec

    • 在 Azure 模拟器中运行时,计数器名称为 \Process(CacheServiceEmulator)\Page Faults/sec

  • \Process(*)\Thread Count

  • \Process(*)\Working Set

  • \Process(*)\Virtual Bytes

  • \Process(*)\Elapsed Time

  • \Process(*)\Page Faults/sec

  • \Network Interface(*)\Current Bandwidth

  • \Network Interface(*)\Bytes Total/sec

  • \Azure Caching:Host\Total Connections Count

  • \Azure Caching:Host\Average Quorum Response Time / operation Microsecond

  • \Azure Caching:Host\Total Client Requests /sec

  • \Azure Caching:Host\Total Notification Delivered

  • \Azure Caching:Host\Total Get Misses

  • \Azure Caching:Host\Total Write Operations /sec

DiagnosticLevel 3 和 DiagnosticLevel 4 包含以下性能计数器。

  • \.NET CLR LocksAndThreads(*)\Contention Rate / sec

  • \.NET CLR LocksAndThreads(*)\Current Queue Length

  • \.NET CLR Memory(*)\# Bytes in all Heaps

  • \.NET CLR Memory(*)\# Gen 0 Collections

  • \.NET CLR Memory(*)\# Gen 1 Collections

  • \.NET CLR Memory(*)\# Gen 2 Collections

  • \.NET CLR Memory(*)\% Time in GC

  • \.NET CLR Memory(*)\Gen 0 heap size

  • \.NET CLR Memory(*)\Gen 1 heap size

  • \.NET CLR Memory(*)\Gen 2 heap size

  • \.NET CLR Memory(*)\Large Object Heap size

  • \.NET CLR Exceptions(*)\# of Exceps Thrown

  • \Memory\Available MBytes

  • \Memory\Page Faults/sec

  • \PhysicalDisk(_Total)\% Idle Time

  • \PhysicalDisk(_Total)\Avg.Disk Queue Length

  • \Processor(_Total)\% Privileged Time

  • \Processor(_Total)\% Processor Time

  • \System\Context Switches/sec

  • \System\Processor Queue Length

  • \Process(*)\% Processor Time

  • \Process(*)\Handle Count

  • \Process(*)\Private Bytes

  • \Process(*)\Thread Count

  • \Process(*)\Working Set

  • \Process(*)\Virtual Bytes

  • \Process(*)\Elapsed Time

  • \Process(*)\Page Faults/sec

  • \Process(CacheService)\Page Faults/sec

    • 在 模拟器中运行时,计数器名称为 \Process(CacheServiceEmulator)\Page Faults/sec

  • \Network Interface(*)\Current Bandwidth

  • \Network Interface(*)\Packets/sec

  • \Network Interface(*)\Bytes Sent/sec

  • \Network Interface(*)\Bytes Received/sec

  • \Network Interface(*)\Bytes Total/sec

  • \System\System Up Time

  • \Azure Caching:Host\Available Cache Item Percentage

  • \Azure Caching:Host\Total Connections Count

  • \Azure Caching:Host\Available Directory Percentage

  • \Azure Caching:Host\Available Memory Percentage

  • \Azure Caching:Host\Average Quorum Response Time / operation Microsecond

  • \Azure Caching:Host\Average Secondary Response Time / operation Microsecond

  • \Azure Caching:Host\Cache Miss Percentage

  • \Azure Caching:Host\Gateway Process Time

  • \Azure Caching:Host\Gateway Failure Percentage

  • \Azure Caching:Host\Request Processing Error Percentage

  • \Azure Caching:Host\Total Allocated Cache Item Count

  • \Azure Caching:Host\Total Allocated Directory Count

  • \Azure Caching:Host\Total Available Cache Item Count

  • \Azure Caching:Host\Total Available Directory Count

  • \Azure Caching:Host\Total Available Memory Bytes

  • \Azure Caching:Host\Total Cache Misses

  • \Azure Caching:Host\Total Cache Misses /sec

  • \Azure Caching:Host\Total Client Requests

  • \Azure Caching:Host\Total Client Requests /sec

  • \Azure Caching:Host\Total Data Size Bytes

  • \Azure Caching:Host\Total Evicted Objects

  • \Azure Caching:Host\Total Eviction Runs

  • \Azure Caching:Host\Total Expired Objects

  • \Azure Caching:Host\Total Failure Exceptions

  • \Azure Caching:Host\Total Failure Exceptions /sec

  • \Azure Caching:Host\Total Memory Evicted

  • \Azure Caching:Host\Total Notification Delivered

  • \Azure Caching:Host\Total Notification Delivered /sec

  • \Azure Caching:Host\Total Notification Poll Requests

  • \Azure Caching:Host\Total Notification Poll Requests /sec

  • \Azure Caching:Host\Total Object Count

  • \Azure Caching:Host\Total Objects Returned

  • \Azure Caching:Host\Total Objects Returned /sec

  • \Azure Caching:Host\Total Primary Data Size Bytes

  • \Azure Caching:Host\Total Get Misses

  • \Azure Caching:Host\Total Get Misses /sec

  • \Azure Caching:Host\Total Get Requests

  • \Azure Caching:Host\Total Get Requests /sec

  • \Azure Caching:Host\Total GetAndLock Requests

  • \Azure Caching:Host\Total GetAndLock Requests /sec

  • \Azure Caching:Host\Total Memory Evicted

  • \Azure Caching:Host\Total Read Requests

  • \Azure Caching:Host\Total Read Requests /sec

  • \Azure Caching:Host\Total Requests Served

  • \Azure Caching:Host\Total Requests Served /sec

  • \Azure Caching:Host\Total Retry Exception

  • \Azure Caching:Host\Total Retry Exception /sec

  • \Azure Caching:Host\Total Secondary Data Size Bytes

  • \Azure Caching:Host\Total Successful GetAndLock Requests

  • \Azure Caching:Host\Total Successful GetAndLock Requests /sec

  • \Azure Caching:Host\Total Write Operations

  • \Azure Caching:Host\Total Write Operations /sec

ClientDiagnosticLevel 1 包含以下性能计数器。

  • \Azure Caching:Client Host\Failure Exceptions

  • \Azure Caching:Client Host\Total Local Cache Hits

  • \Azure Caching:Client Host\Current Server Connections

  • \Azure Caching:Client Host\Average Get Latency / operation Microsecond

  • \Azure Caching:Client Host\Average Put Latency / operation Microsecond

  • \Azure Caching:Client Host\Retry Exceptions

  • \Azure Caching:Client Host\Timeout Exceptions

  • \Azure Caching:Client Host\Requests

  • \Processor(_Total)\% Processor Time

  • \.NET CLR Memory(_Global_)\% Time in GC

  • \Azure Caching:Client(*)\Failure Exceptions

  • \Azure Caching:Client(*)\Total Local Cache Hits

  • \Azure Caching:Client(*)\Current Server Connections

  • \Azure Caching:Client(*)\Average Get Latency / operation Microsecond

  • \Azure Caching:Client(*)\Average Put Latency / operation Microsecond

  • \Azure Caching:Client(*)\Retry Exceptions

  • \Azure Caching:Client(*)\Timeout Exceptions

  • \Azure Caching:Client(*)\Requests

ClientDiagnosticLevel 2、3 和 4 包含以下性能计数器。

  • \Azure Caching:Client Host\Requests

  • \Azure Caching:Client Host\Requests / sec

  • \Azure Caching:Client Host\Server Responses Dropped / sec

  • \Azure Caching:Client Host\Failure Exceptions

  • \Azure Caching:Client Host\Failure Exceptions / sec

  • \Azure Caching:Client Host\Average Get Latency / operation Microsecond

  • \Azure Caching:Client Host\Average Put Latency / operation Microsecond

  • \Azure Caching:Client Host\Average Get Latency (Network) / operation Microsecond

  • \Azure Caching:Client Host\Read Requests

  • \Azure Caching:Client Host\Write Requests

  • \Azure Caching:Client Host\Bytes Received / sec

  • \Azure Caching:Client Host\Bytes Sent / sec

  • \Azure Caching:Client Host\Current Server Connections

  • \Azure Caching:Client Host\Local Cache Filled Percentage

  • \Azure Caching:Client Host\Local Cache Hits Percentage

  • \Azure Caching:Client Host\Total Local Cache Hits

  • \Azure Caching:Client Host\Total Local Cache Objects

  • \Azure Caching:Client Host\Total Notifications Received

  • \Azure Caching:Client Host\Timeout Exceptions

  • \Azure Caching:Client Host\Timeout Exceptions / sec

  • \Azure Caching:Client Host\Retry Exceptions

  • \Azure Caching:Client Host\Retry Exceptions / sec

  • \Azure Caching:Client Host\Total Connection Requests Failed

  • \Azure Caching:Client Host\Network Exceptions

  • \Azure Caching:Client Host\Network Exceptions / sec

  • \Azure Caching:Client Host\Current Waiting Requests

  • \Processor(_Total)\% Processor Time

  • \.NET CLR Memory(_Global_)\% Time in GC

  • \Azure Caching:Client(*)\Requests

  • \Azure Caching:Client(*)\Requests / sec

  • \Azure Caching:Client(*)\Server Responses Dropped / sec

  • \Azure Caching:Client(*)\Failure Exceptions

  • \Azure Caching:Client(*)\Failure Exceptions / sec

  • \Azure Caching:Client(*)\Average Get Latency / operation Microsecond

  • \Azure Caching:Client(*)\Average Put Latency / operation Microsecond

  • \Azure Caching:Client(*)\Average Get Latency (Network) / operation Microsecond

  • \Azure Caching:Client(*)\Read Requests

  • \Azure Caching:Client(*)\Write Requests

  • \Azure Caching:Client(*)\Bytes Received / sec

  • \Azure Caching:Client(*)\Bytes Sent / sec

  • \Azure Caching:Client(*)\Current Server Connections

  • \Azure Caching:Client(*)\Local Cache Filled Percentage

  • \Azure Caching:Client(*)\Local Cache Hits Percentage

  • \Azure Caching:Client(*)\Total Local Cache Hits

  • \Azure Caching:Client(*)\Total Local Cache Objects

  • \Azure Caching:Client(*)\Total Notifications Received

  • \Azure Caching:Client(*)\Timeout Exceptions

  • \Azure Caching:Client(*)\Timeout Exceptions / sec

  • \Azure Caching:Client(*)\Retry Exceptions

  • \Azure Caching:Client(*)\Retry Exceptions / sec

  • \Azure Caching:Client(*)\Total Connection Requests Failed

  • \Azure Caching:Client(*)\Network Exceptions

  • \Azure Caching:Client(*)\Network Exceptions / sec

  • \Azure Caching:Client(*)\Current Waiting Requests

另请参阅

本文是否对您有所帮助?
(1500 个剩余字符)
感谢您的反馈
显示:
© 2015 Microsoft