Azure In-Role Cache 疑難排解和診斷
重要
Microsoft 建議所有新的開發都使用 Azure Redis 快取。 如需選擇 Azure 快取供應專案的目前檔和指引,請參閱 哪個 Azure 快取供應專案適合我?
In-Role快取應用程式是針對使用診斷層級的診斷資料收集所設定。 此診斷層級提供一項可用於設定資料收集層級的設定。 本主題提供疑難排解In-Role快取應用程式疑難排解步驟和診斷的概觀。
In-Role快取應用程式的疑難排解和診斷
在 Azure 上執行的應用程式廣泛散發,且多實例應用程式難以偵錯。 需要有標準以上的工具和方法才能疑難排解這類應用程式。 針對 Azure 應用程式進行疑難排解超出本主題的範圍,但 Azure 中的診斷和偵錯中提供詳細資訊。 本主題討論經過證實的疑難排解做法,並包含更密集資訊和最佳做法的連結。 如需在收集診斷資料後檢視診斷資料的詳細資訊,請參閱Microsoft Store和檢視Azure 儲存體中的診斷資料。
設定In-Role快取應用程式以收集診斷資料以進行疑難排解,需要設定診斷層級,並在角色啟動期間設定快取診斷。 本主題提供這些步驟的概觀,以針對In-Role快取應用程式進行疑難排解。
設定診斷層級
快取伺服器診斷層級
Cache Client 診斷層級
設定快取診斷
各診斷層級的效能計數器
設定診斷層級
In-Role快取提供五個診斷層級,可用來設定診斷資料收集的數量。 診斷層級範圍由 0 到 4,而數字表示針對快取伺服器和用戶端所收集的診斷資訊數量。 每個診斷層級都包含一組預先設定的效能計數器、事件記錄、追蹤和損毀傾印設定,可用來監視In-Role快取應用程式的健康情況。
診斷層級 | 收集的診斷資料 |
---|---|
0 |
僅限非常重大/嚴重的伺服器記錄檔。 |
1 |
有助於評估使用模式、快取系統健康情況及任何潛在錯誤的診斷資料。 這是預設組態層級。 |
2 |
所有要求和重要系統資訊的精細診斷資料。 |
3 |
包含更多詳細資訊和系統資訊的診斷資料。 |
4 |
所有要求和系統資訊的最高詳細程度記錄檔。 |
對應於快取用戶端和快取伺服器診斷的快取診斷層級有兩種。 DiagnosticLevel 代表快取伺服器診斷, 而 ClientDiagnosticLevel 代表快取用戶端診斷。 每一個層級都會設定一組不同的效能計數器、記錄檔、追蹤和損毀傾印設定。 這些診斷層級會設定於應用程式的 ServiceConfiguration.cscfg 檔案中,只需部署更新後的 ServiceConfiguration.cscfg 檔案,即可針對執行中的雲端應用程式進行變更。
快取伺服器診斷層級
Cache Client 診斷層級
快取伺服器診斷層級
快取叢集的快取伺服器診斷層級會在 ServiceConfiguration.cscfg 檔案中指定,該檔案位於主控快取叢集之角色的組態中。 當角色的 [快取] 索引標籤中啟用快取時,就會新增此設定Visual Studio,而且已在快取背景工作角色新增至專案時存在。 預設 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 |
|
1 |
|
2 |
|
3 |
|
4 |
|
注意
在 Azure 模擬器中執行In-Role快取應用程式時,所有角色實例的追蹤都會收集在 *_IN_0 資料夾下,即使有多個角色實例也一樣。 這是設計的行為。 在 Azure 中裝載In-Role快取應用程式時,每個角色實例的追蹤都位於角色實例的個別資料夾中。
Cache Client 診斷層級
快取用戶端的 ClientDiagnosticLevel 層級是在 ServiceConfiguration.cscfg 中,在快取用戶端角色的組態區段中指定。 當角色設定為做為快取用戶端時,In-Role快取NuGet套件會新增此設定。
注意
如需使用In-Role快取NuGet套件設定快取用戶端的詳細資訊,請參閱設定角色快取的Project。
預設 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>
下表列出針對各用戶端診斷層級收集的診斷資料。
注意
用戶端診斷層級的損毀傾印設定僅與使用 Memcached 用戶端填充碼的快取用戶端相關。 不會收集非 Memcache 用戶端的損毀傾印。 如需 Memcached 用戶端填充碼的詳細資訊,請參閱 適用于 Azure In-Role快取的 Memcached 包裝函式。
ClientDiagnosticLevel | 收集的資料 |
---|---|
0 |
|
1 |
|
2 |
|
3 |
|
4 |
|
注意
在 Azure 模擬器中執行In-Role快取應用程式時,所有角色實例的追蹤都會收集在 *_IN_0 資料夾下,即使有多個角色實例也一樣。 這是設計的行為。 In-Role Azure 中裝載快取應用程式時,每個角色實例的追蹤都會位於角色實例的個別資料夾中。
設定快取診斷
設定快取診斷的步驟視使用的 Azure SDK 版本而有所不同。
使用 Azure SDK 2.5 或更高版本來設定快取診斷
使用 Azure SDK 2.4 或更低版本來設定快取診斷
使用 Azure SDK 2.5 或更高版本來設定快取診斷
使用 Azure SDK 2.5 或更高版本時,會使用 diagnostics.wadcfgx
檔案來設定快取診斷。 使用 Visual Studio 中的 [診斷組態] 對話方塊來設定診斷時,這些檔案會自動新增至您的 Visual Studio 專案。 對於每個參與快取的角色 (無論做為用戶端還是伺服器),會分別新增一個 diagnostics.wadcfgx
檔案。 如果是共置快取角色,用戶端和伺服器的設定將會包含在同一個 diagnostics.wadcfgx
檔案中。 如需使用 [診斷設定] 對話方塊來設定診斷的指引,請參閱設定 Azure 雲端服務和虛擬機器的診斷。
使用 [診斷組態] 對話方塊設定診斷後,快取診斷的設定還會有其他若干事項需要考量。
應用程式記錄檔會設定在 [診斷組態] 對話方塊中的 [應用程式記錄檔] 索引標籤上。 快取伺服器應用程式記錄檔的組態會設定在 DataSources
檔案的 diagnostics.wadcfxg
區段中。
<DataSources>
<DirectoryConfiguration containerName="wad-custom-logs">
<LocalResource name="DiagnosticStore" relativePath="AzureCaching\ServiceLogs\Upload" />
</DirectoryConfiguration>
</DataSources>
快取伺服器用戶端應用程式記錄檔的組態,會使用 [診斷組態] 對話方塊中的 [應用程式記錄檔] 索引標籤設定值來設定。 使用的層級取自對話方塊上的 [記錄層級] 設定或 ClientDiagnosticLevel
檔案中設定的 .cscfg
,視何者的值較低。 若要收集較高層級的快取伺服器應用程式記錄檔資料,請確定這兩個值都設為適當層級。
產生的效能計數器資料,取決於快取用戶端的 Microsoft.WindowsAzure.Plugins.Caching.ClientDiagnosticLevel
和快取伺服器的 Microsoft.WindowsAzure.Plugins.Caching.DiagnosticLevel
中指定的層級。 將效能計數器度量傳輸至儲存體時,將只會傳輸 diagnostics.wadcfxg
中列出的度量,如下列範例 diagnostics.wadcfxg
檔案所示。
<?xml version="1.0" encoding="utf-8"?>
<DiagnosticsConfiguration xmlns="https://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
<PublicConfig xmlns="https://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="https://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
<StorageAccount endpoint="" />
</PrivateConfig>
<IsEnabled>true</IsEnabled>
</DiagnosticsConfiguration>
<?xml version="1.0" encoding="utf-8"?>
<DiagnosticsConfiguration xmlns="https://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
<PublicConfig xmlns="https://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="https://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
<StorageAccount endpoint="" />
</PrivateConfig>
<IsEnabled>true</IsEnabled>
</DiagnosticsConfiguration>
使用 Azure SDK 2.4 或更低版本來設定快取診斷
若要使用 Azure SDK 2.4 或更低版本開始收集快取診斷資料,則必須在角色啟動期間叫用下列程式碼。 此代碼必須新增至快取用戶端或快取伺服器的每個角色,以便快取要收集的診斷資料。 裝載此程式碼的一個便利位置是在角色的 OnStart 覆寫中,如下列範例所示。
public override bool OnStart()
{
DiagnosticMonitorConfiguration dmConfig =
DiagnosticMonitor.GetDefaultInitialConfiguration();
// Configure the collection of cache diagnostic data.
CacheDiagnostics.ConfigureDiagnostics(dmConfig);
DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString",
dmConfig);
return base.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參考, 並使用 (或Imports) 語句新增下列專案。
using Microsoft.ApplicationServer.Caching.AzureCommon;
Imports Microsoft.ApplicationServer.Caching.AzureCommon
注意
如果角色已設定為使用快取In-Role快取NuGet套件的快取用戶端,則已新增Microsoft.ApplicationServer.Caching.AzureCommon.dll元件參考。
如果您要將快取新增至現有的角色,且診斷設定程式碼已經存在,您可以在呼叫 O:Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor.Start 之前,將呼叫新增至 O:Microsoft.ApplicationServer.Caching.AzureCommon.CacheDiagnostics.ConfigureDiagnostics 至現有的診斷啟動程式碼。
警告
In-Role Cache 應用程式中的診斷資料收集需要呼叫 O:Microsoft.ApplicationServer.Caching.AzureCommon.CacheDiagnostics.ConfigureDiagnostics 和 ) :Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor.Start。 若這兩種方法均未在啟動角色期間呼叫,則不會收集快取診斷資料。
各診斷層級的效能計數器
下列幾節包含各伺服器和用戶端診斷層級內含的效能計數器清單。 In-Role快取和效能計數器都包含在內。 如需In-Role快取效能計數器描述的完整清單,請參閱 監視 Azure In-Role快取。 如需效能計數器的詳細資訊,請參閱.NET Framework中的效能計數器。
伺服器診斷層級 1 效能計數器
伺服器診斷層級 2 效能計數器
伺服器診斷層級 3 和 4 效能計數器
用戶端診斷層級 1 效能計數器
用戶端診斷層級 2、3 和 4 效能計數器
伺服器診斷層級 1 效能計數器
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
\記憶體\可用的 MB
\Process(CacheService)\Page Faults/sec
- 在 Azure 模擬器中執行時,計數器名稱為 \Process (CacheServiceEmulator) \Page Faults/sec
\Processor(_Total)\% Processor Time
\.NET CLR Memory(_Global_)\% Time in GC
伺服器診斷層級 2 效能計數器
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 記憶體 (*) \Gen 1 堆積大小
\.NET CLR 記憶體 (*) \Gen 2 堆積大小
\.NET CLR Memory(*)\Large Object Heap size
\記憶體\可用的 MB
\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
伺服器診斷層級 3 和 4 效能計數器
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 記憶體 (*) \# Gen 1 集合
\.NET CLR 記憶體 (*) \# Gen 2 集合
\.NET CLR Memory(*)\% Time in GC
\.NET CLR Memory(*)\Gen 0 heap size
\.NET CLR 記憶體 (*) \Gen 1 堆積大小
\.NET CLR 記憶體 (*) \Gen 2 堆積大小
\.NET CLR Memory(*)\Large Object Heap size
\.NET CLR Exceptions(*)\# of Exceps Thrown
\記憶體\可用的 MB
\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
用戶端診斷層級 1 效能計數器
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
用戶端診斷層級 2、3 和 4 效能計數器
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
另請參閱
參考
Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor