Share via


Azure In-Role Cache のトラブルシューティングと診断

重要

Microsoft では、すべての新しい開発で Azure Redis Cache を使用することをお勧めします。 Azure Cache オファリングの選択に関する最新のドキュメントとガイダンスについては、「自分に適した Azure Cache オファリング」を参照してください。

In-Roleキャッシュ アプリケーションは、診断レベルを使用して診断データ収集用に構成されます。 この診断レベルは、データ収集のレベルを構成するための 1 つの設定として使用されます。 このトピックでは、In-Role キャッシュ アプリケーションのトラブルシューティング手順と診断の概要について説明します。

In-Role キャッシュ アプリケーションのトラブルシューティングと診断

Azure で実行されているアプリケーションは、デバッグが困難な可能性がある、広く分散されたマルチインスタンス アプリケーションです。 このような種類のアプリケーションの問題を解決するには、高度なツールや方法が必要です。 Azure アプリケーションのトラブルシューティングはこのトピックの範囲外ですが、詳細については 、Azure の診断とデバッグに関するページを参照してください。 このトピックでは、実証済みのトラブルシューティングプラクティスについて説明し、より集中的な情報とベスト プラクティスへのリンクを紹介します。 収集された診断データの表示の詳細については、「Microsoft Store」および「Azure Storageでの診断データの表示」を参照してください。

トラブルシューティングのために診断データを収集するようにIn-Roleキャッシュ アプリケーションを構成するには、診断レベルを構成し、ロールの起動時にキャッシュ診断を構成する必要があります。 このトピックでは、In-Role キャッシュ アプリケーションのトラブルシューティングに関するこれらの手順の概要について説明します。

  • 診断レベルの構成

    • キャッシュ サーバー診断レベル

    • キャッシュ クライアント診断レベル

  • キャッシュ診断の構成

  • 診断レベル別のパフォーマンス カウンター

診断レベルの構成

In-Role キャッシュには、診断データ収集の量を構成するために使用される 5 つの診断レベルが用意されています。 診断レベルの範囲は 0 ~ 4 です。この数値は、キャッシュ サーバーとクライアント用に収集される診断情報の量を示します。 各診断レベルには、In-Role キャッシュ アプリケーションの正常性を監視するために使用できる、パフォーマンス カウンター、イベント ログ、トレース、クラッシュ ダンプの設定の事前構成済みのセットが含まれています。

診断レベル 収集される診断データ

0

非常に重大/致命的なサーバー ログのみ。

1

使用パターン、キャッシュ システムのヘルス、および任意のエラーの可能性を評価するときに役立つ診断データ。 これは既定の構成レベルです。

2

すべての要求と重要なシステム情報の詳細な診断データ。

3

詳細度がさらに高く、システム情報を含む診断データ。

4

すべての要求とシステム情報の最も詳細度が高いログ。

キャッシュ クライアントとキャッシュ サーバーの診断に対応する 2 種類のキャッシュ診断レベルがあります。 DiagnosticLevel はキャッシュ サーバーの診断を表し、 ClientDiagnosticLevel はキャッシュ クライアント診断を表します。 各レベルで、異なるパフォーマンス カウンター、ログ、トレース、クラッシュ ダンプの設定を構成します。 これらの診断レベルは、アプリケーション用の ServiceConfiguration.cscfg ファイルで構成します。更新した ServiceConfiguration.cscfg ファイルをデプロイすることで、実行中のクラウド アプリケーションの診断レベルを変更できます。

  • キャッシュ サーバー診断レベル

  • キャッシュ クライアント診断レベル

キャッシュ サーバー診断レベル

キャッシュ クライアントのキャッシュ サーバー診断レベルは、ServiceConfiguration.cscfg の、キャッシュ クラスターをホストするロールの構成セクションで指定します。 この設定は、ロールの [キャッシュ] タブでキャッシュが有効になっているときにVisual Studioによって追加され、キャッシュ ワーカー ロールがプロジェクトに追加されたときに既に存在します。 既定の DiagnosticLevel は 1 で、ロールに DiagnosticLevel が存在しない場合は、 DiagnosticLevel 1 が使用されます。 DiagnosticLevel を変更するには、ServiceConfiguration.cscfg のロールの DiagnosticLevel 設定を変更します。 次の例は、WorkerRole1DiagnosticLevel が 1 の ServiceConfiguration.cscfg ファイルのセクションです。

<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

  • ログ レベル: 警告

  • サーバー診断レベル 1 パフォーマンス カウンター

  • 次の登録済みイベント ログ

    • Application!*[System/Provider/@Name='CacheService']

    • Application!*[System/Provider/@Name='.NET Runtime']

  • 少数のクラッシュ ダンプ

2

  • ログ レベル: 情報

  • サーバー診断レベル 2 のパフォーマンス カウンター

  • 次の登録済みイベント ログと、診断レベル 1 のイベント ログ

    • Azure!*

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

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

  • 完全なクラッシュ ダンプ

3

  • ログ レベル: 情報

  • サーバー診断レベル 3 および 4 のパフォーマンス カウンター

  • 診断レベル 2 と同じイベント ログ

  • 完全なクラッシュ ダンプ

4

  • ログ レベル: 詳細

  • サーバー診断レベル 3 および 4 のパフォーマンス カウンター

  • 診断レベル 2 と同じイベント ログ

  • 完全なクラッシュ ダンプ

注意

Azure エミュレーターIn-Roleキャッシュ アプリケーションを実行すると、複数のロール インスタンスがある場合でも、すべてのロール インスタンスのトレースが *_IN_0 フォルダーに収集されます。 この動作は仕様です。 In-Roleキャッシュ アプリケーションが Azure でホストされている場合、各ロール インスタンスのトレースは、ロール インスタンスのそれぞれのフォルダーに配置されます。

キャッシュ クライアント診断レベル

キャッシュ クライアントの ClientDiagnosticLevel レベルは、ServiceConfiguration.cscfg で、キャッシュ クライアントであるロールの構成セクションで指定されます。 この設定は、ロールがキャッシュ クライアントとして機能するように構成されている場合に、In-Role Cache NuGet パッケージによって追加されます。

注意

In-Role キャッシュ NuGet パッケージを使用したキャッシュ クライアントの構成の詳細については、「ロールでのキャッシュのProjectの構成」を参照してください。

既定の ClientDiagnosticLevel は 1 で、ロール に ClientDiagnosticLevel が存在しない場合は、 ClientDiagnosticLevel 1 が使用されます。 ClientDiagnosticLevel を変更するには、ServiceConfiguration.cscfg のロールの ClientDiagnosticLevel 設定を変更します。 次の例は、WebRole1ClientDiagnosticLevel が 1 の ServiceConfiguration.cscfg ファイルのセクションです。

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

次の表は、各クライアント診断レベルで収集される診断データの一覧です。

注意

クライアント診断レベルのキャッシュ ダンプ設定は、Memcached クライアント shim を使用するキャッシュ クライアントにのみ関係があります。 Memcache クライアント以外の場合、クラッシュ ダンプは収集されません。 Memcached クライアント shim の詳細については、「 Azure In-Role Cache の Memcached ラッパー」を参照してください。

ClientDiagnosticLevel 収集したデータ

0

  • ログ レベル: 重大

  • パフォーマンス カウンターなし

  • イベント ログの登録なし

  • 少数のクラッシュ ダンプ

1

  • ログ レベル: 警告

  • クライアント診断レベル 1 のパフォーマンス カウンター

  • イベント ログの登録なし

  • 少数のクラッシュ ダンプ

2

  • ログ レベル: 情報

  • クライアント診断レベル 2、3、および 4 のパフォーマンス カウンター

  • イベント ログの登録なし

  • 完全なクラッシュ ダンプ

3

  • ログ レベル: 情報

  • クライアント診断レベル 2、3、および 4 のパフォーマンス カウンター

  • イベント ログの登録なし

  • 完全なクラッシュ ダンプ

4

  • ログ レベル: 詳細

  • クライアント診断レベル 2、3、および 4 のパフォーマンス カウンター

  • イベント ログの登録なし

  • 完全なクラッシュ ダンプ

注意

Azure エミュレーターで In-Role Cache アプリケーションを実行すると、複数のロール インスタンスがある場合でも、すべてのロール インスタンスのトレースが *_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 プロジェクトに自動的に追加されます。 クライアントまたはサーバーとしてキャッシュに参加しているロールごとに 1 つの diagnostics.wadcfgx ファイルが追加されます。 キャッシュのロールが併置されている場合は、クライアントとサーバーの設定が同じ diagnostics.wadcfgx ファイルに含まれます。 診断を構成するための [診断構成] ダイアログ ボックスの使用に関するガイダンスについては、「Azure Cloud Services とVirtual Machinesの診断の構成」を参照してください。

[診断構成] ダイアログ ボックスを使用して診断を構成した後は、キャッシュ診断の構成に関していくつかの追加考慮事項があります。

アプリケーション ログは、[診断構成] ダイアログ ボックスの [アプリケーション ログ] タブで構成します。 キャッシュ サーバー アプリケーション ログの構成は、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 以前を使用してキャッシュ診断データの収集を開始するには、ロールの開始時に次のコードを呼び出す必要があります。 キャッシュ診断データを収集するには、キャッシュ クライアントまたはキャッシュ サーバーである各ロールにこのコードを追加する必要があります。 このコードをホストする便利な場所の 1 つは、次の例に示すように、ロールの 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 SDK\Azure\.NET SDK\2012-10\ref\Caching にあるMicrosoft.ApplicationServer.Caching.AzureCommon.dllへの参照を追加し、次の using (または Imports) ステートメント追加します。

using Microsoft.ApplicationServer.Caching.AzureCommon;
Imports Microsoft.ApplicationServer.Caching.AzureCommon

注意

In-Role Cache NuGet パッケージを使用してロールがキャッシュ クライアントとして構成されている場合は、Microsoft.ApplicationServer.Caching.AzureCommon.dll アセンブリ参照が既に追加されています。

既存のロールにキャッシュを追加していて、診断構成コードが既に存在する場合は、O:Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor.Start の呼び出しの前に、O:Microsoft.ApplicationServer.Caching.AzureCommon.CacheDiagnostics.ConfigureDiagnostics への呼び出しを既存の診断スタートアップ コードに追加できます。

警告

O:Microsoft.ApplicationServer.Caching.AzureCommon.CacheDiagnostics.ConfigureDiagnostics と ):Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor.Start の両方を呼び出すことは、In-Role キャッシュ アプリケーションでの診断データ収集に必要です。 ロールの開始時にこれらの両方のメソッドを呼び出さない場合、キャッシュ診断データは収集されません。

診断レベル別のパフォーマンス カウンター

次のセクションでは、サーバーとクライアントの各診断レベルに含まれるパフォーマンス カウンターの一覧を示します。 In-Role キャッシュ カウンターとパフォーマンス カウンターの両方が含まれています。 In-Role キャッシュ パフォーマンス カウンターの詳細な一覧については、「 Azure In-Role Cache の監視」を参照してください。 パフォーマンス カウンターの詳細については、.NET Frameworkのパフォーマンス カウンターを参照してください。

  • サーバー診断レベル 1 パフォーマンス カウンター

  • サーバー診断レベル 2 パフォーマンス カウンター

  • サーバー診断レベル 3 および 4 のパフォーマンス カウンター

  • クライアント診断レベル 1 のパフォーマンス カウンター

  • クライアント診断レベル 2、3、および 4 のパフォーマンス カウンター

サーバー診断レベル 1 パフォーマンス カウンター

DiagnosticLevel 1 には、次のパフォーマンス カウンターが含まれています。

  • \Azure Caching:ホスト\平均セカンダリ応答時間 / 操作マイクロ秒

  • \Azure Caching:ホスト\合計データ サイズ バイト数

  • \Azure Caching:ホスト\合計クライアント要求数

  • \Azure Caching:ホスト\合計読み取り要求数

  • \Azure Caching:ホスト\合計オブジェクト数

  • \Azure Caching:ホスト\エラー例外の合計数

  • \Memory\Available MBytes

  • \プロセス(CacheService)\毎秒ページ フォールト数

    • Azure エミュレーターで実行されている場合、カウンター名は \Process(CacheServiceEmulator)\Page Faults/sec です
  • \Processor(_Total)\% Processor Time

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

サーバー診断レベル 2 パフォーマンス カウンター

DiagnosticLevel 2 には、次のパフォーマンス カウンターが含まれています。

  • \Azure Caching:ホスト\平均セカンダリ応答時間 / 操作マイクロ秒

  • \Azure Caching:ホスト\合計データ サイズ バイト数

  • \Azure Caching:ホスト\合計クライアント要求数

  • \Azure Caching:ホスト\合計読み取り要求数

  • \Azure Caching:ホスト\合計オブジェクト数

  • \Azure Caching:ホスト\エラー例外の合計数

  • \Processor(_Total)\% Processor Time

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

  • \Azure Caching:ホスト\合計読み取り要求数/秒

  • \Azure Caching:ホスト\キャッシュ ミスの割合

  • \Azure Caching:ホスト\合計プライマリ データ サイズ バイト数

  • \Azure Caching:ホスト\合計割り当てディレクトリ数

  • \Azure Caching:ホスト\使用可能キャッシュ項目の割合

  • \Azure Caching:ホスト\合計使用可能キャッシュ項目数

  • \Azure Caching:ホスト\通知配信合計数

  • \Azure Caching:ホスト\解放実行の合計数

  • \Azure Caching:ホスト\解放されたメモリ合計

  • \Azure Caching:ホスト\解放されたオブジェクトの合計数

  • \Azure Caching:ホスト\期限切れオブジェクトの合計数

  • \Azure Caching:ホスト\受け付けられた要求の合計数

  • \Azure Caching:ホスト\合計書き込み操作数

  • \.NET CLR LocksAndThreads(*)\競合の割合/秒

  • \.NET CLR メモリ(*)\% GC の時間

  • \.NET CLR メモリ(*)\Gen 0 ヒープ サイズ

  • \.NET CLR メモリ(*)\Gen 1 ヒープ サイズ

  • \.NET CLR メモリ(*)\Gen 2 ヒープ サイズ

  • \.NET CLR メモリ(*)\大型オブジェクトのヒープ サイズ

  • \Memory\Available MBytes

  • \プロセス(CacheService)\毎秒ページ フォールト数

    • Azure エミュレーターで実行されている場合、カウンター名は \Process(CacheServiceEmulator)\Page Faults/sec です
  • \プロセス(*)\スレッド数

  • \プロセス(*)\ワーキング セット

  • \プロセス(*)\仮想バイト数

  • \プロセス(*)\経過時間

  • \プロセス(*)\ページ フォールト数/秒

  • \ネットワーク インターフェイス(*)\現在の帯域幅

  • \ネットワーク インターフェイス(*)\合計バイト数/秒

  • \Azure Caching:ホスト\合計接続数

  • \Azure Caching:ホスト\平均クォーラム応答時間 / 操作マイクロ秒

  • \Azure Caching:ホスト\合計クライアント要求数/秒

  • \Azure Caching:ホスト\通知配信合計数

  • \Azure Caching:ホスト\取得できなかった合計数

  • \Azure Caching:ホスト\合計書き込み操作数/秒

サーバー診断レベル 3 および 4 のパフォーマンス カウンター

DiagnosticLevel 3 と DiagnosticLevel 4 には、次のパフォーマンス カウンターが含まれています。

  • \.NET CLR LocksAndThreads(*)\競合の割合/秒

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

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

  • \.NET CLR メモリ(*)\# Gen 0 収集

  • \.NET CLR Memory(*)\# Gen 1 コレクション

  • \.NET CLR Memory(*)\# Gen 2 コレクション

  • \.NET CLR メモリ(*)\% GC の時間

  • \.NET CLR メモリ(*)\Gen 0 ヒープ サイズ

  • \.NET CLR メモリ(*)\Gen 1 ヒープ サイズ

  • \.NET CLR メモリ(*)\Gen 2 ヒープ サイズ

  • \.NET CLR メモリ(*)\大型オブジェクトのヒープ サイズ

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

  • \Memory\Available MBytes

  • \Memory\Page Faults/sec

  • \PhysicalDisk(_Total)\% Idle Time

  • \PhysicalDisk(_Total)\Avg.ディスク キューの長さ

  • \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

  • \プロセス(*)\スレッド数

  • \プロセス(*)\ワーキング セット

  • \プロセス(*)\仮想バイト数

  • \プロセス(*)\経過時間

  • \プロセス(*)\ページ フォールト数/秒

  • \プロセス(CacheService)\毎秒ページ フォールト数

    • エミュレーターで実行されている場合、カウンター名は \Process(CacheServiceEmulator)\Page Faults/sec です
  • \ネットワーク インターフェイス(*)\現在の帯域幅

  • \Network Interface(*)\Packets/sec

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

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

  • \ネットワーク インターフェイス(*)\合計バイト数/秒

  • \System\System Up Time

  • \Azure Caching:ホスト\使用可能キャッシュ項目の割合

  • \Azure Caching:ホスト\合計接続数

  • \Azure Caching:Host\Available Directory Percentage

  • \Azure Caching:Host\Available Memory Percentage

  • \Azure Caching:ホスト\平均クォーラム応答時間 / 操作マイクロ秒

  • \Azure Caching:ホスト\平均セカンダリ応答時間 / 操作マイクロ秒

  • \Azure Caching:ホスト\キャッシュ ミスの割合

  • \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:ホスト\合計割り当てディレクトリ数

  • \Azure Caching:ホスト\合計使用可能キャッシュ項目数

  • \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:ホスト\合計クライアント要求数

  • \Azure Caching:ホスト\合計クライアント要求数/秒

  • \Azure Caching:ホスト\合計データ サイズ バイト数

  • \Azure Caching:ホスト\解放されたオブジェクトの合計数

  • \Azure Caching:ホスト\解放実行の合計数

  • \Azure Caching:ホスト\期限切れオブジェクトの合計数

  • \Azure Caching:ホスト\エラー例外の合計数

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

  • \Azure Caching:ホスト\解放されたメモリ合計

  • \Azure Caching:ホスト\通知配信合計数

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

  • \Azure Caching:Host\Total Notification Poll Requests

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

  • \Azure Caching:ホスト\合計オブジェクト数

  • \Azure Caching:Host\Total Objects Returned

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

  • \Azure Caching:ホスト\合計プライマリ データ サイズ バイト数

  • \Azure Caching:ホスト\取得できなかった合計数

  • \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:ホスト\解放されたメモリ合計

  • \Azure Caching:ホスト\合計読み取り要求数

  • \Azure Caching:ホスト\合計読み取り要求数/秒

  • \Azure Caching:ホスト\受け付けられた要求の合計数

  • \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:ホスト\合計書き込み操作数

  • \Azure Caching:ホスト\合計書き込み操作数/秒

クライアント診断レベル 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

概念

Azure In-Role Cache を監視する

その他の参照情報

.NET Framework のパフォーマンス カウンター
Azure での診断およびデバッグ