> For the complete documentation index, see [llms.txt](https://docs.nexthink.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nexthink.com/platform/ja/references/database-information-and-organization/application-not-responding.md).

# アプリケーションが応答しない

ユーザー入力に応答しないアプリケーションは、従業員の全体的なExperienceに悪影響を及ぼすため、Digital Experience Score（DEX）の重要な要素です。 [DEXスコア](https://docs.nexthink.com/platform/ja/user-guide/dex-score.md)のドキュメントを参照してください。

Collectorは、WindowsとmacOSの両方で応答しないアプリケーションを報告します。検出手法はプラットフォームごとに異なります。この記事では、これらの手法と、それらによって生成されるメトリクスについて説明します。

### Windowsでのアプリケーションが応答しない <a href="#applicationnotresponding-applicationnotrespondingonwindows" id="applicationnotresponding-applicationnotrespondingonwindows"></a>

Windowsでは、Collectorはフリーズイベントとフリーズ数の2つのメトリクスを通じて、応答しないアプリケーションを報告します。

| アプリケーション | フリーズイベント                        | フリーズの数                                         |
| -------- | ------------------------------- | ---------------------------------------------- |
| NQLソース   | `execution.freezes` テーブル        | `execution.events` の `number_of_freezes` フィールド |
| 報告内容     | フリーズごとに、その継続時間と終了理由を含むイベントが1件   | アプリケーションごと、および5分間の期間ごとに1件のカウント。各期間のフリーズは1件まで   |
| スコープ     | ロック解除されたデバイスでフォーカスされているアプリケーション | バックグラウンドプロセスを含むすべてのプロセス                        |
| サンプリング   | 数秒ごと                            | 30～45秒ごと                                       |

この2つのメトリクスは1対1には対応しません。フリーズイベントでは、各インシデントが個別にカウントされます。たとえば低速なネットワーク呼び出しを待機している間にアプリケーションが繰り返しフリーズと復旧を行うと、`number_of_freezes` は1を報告する一方で、複数のイベントが生成されます。一方、`number_of_freezes` は、リソースを節約するために意図的に応答を停止するバックグラウンドプロセスもカウントします。 Microsoft Teamsおよび `msedgewebview2` ベースのその他のアプリケーションは、設計上この動作を行います。したがって、フリーズイベント数が多くなることは想定される動作であり、単一のフリーズが2回カウントされていることを意味するものではありません。

#### フリーズイベント

フリーズイベントは、従業員がアクティブに使用しているアプリケーションで発生した単一のフリーズインシデントを表します。 Collectorは、次のように検出します。

* Collectorは、[フォーカス時間メトリクス](https://docs.nexthink.com/platform/ja/references/database-information-and-organization/focus-time-metric.md)と同じフォーカスロジックを適用し、フォアグラウンドでの応答なし状態が**3秒間**継続した時点でフリーズを開始します。バックグラウンドプロセスおよび中断中のプロセスでは、フリーズイベントは開始されません。
* フォーカスが失われても、フリーズは終了しません。従業員が別のウィンドウに切り替えても、継続時間は加算され続けます。
* Collectorは、4.5秒間応答性が継続した後に復旧を確認するため、フリーズと復旧が短時間に連続して発生しても、1件のインシデントとしてカウントされます。そのため、報告される最短の継続時間は約6秒です。
* Collectorは継続時間を25分に制限するため、解消されないフリーズも上限のある値で報告されます。
* Collectorは、[プライバシー設定](https://docs.nexthink.com/platform/ja/configuring_nexthink/configuring-your-platform/privacy-policy-and-settings.md)とは独立してフリーズイベントを記録します。

`end_reason` フィールドは、フリーズがどのように終了したかを示します。

* `recovered`: アプリケーションが自動的に再び応答するようになりました。
* `crashed`: アプリケーションがクラッシュして終了しました。
* `terminated`: 従業員がフリーズ中にアプリケーションを閉じました。
* `session_ended`: フリーズが解消される前にセッションがロックまたは終了しました。
* `null`: たとえばフリーズが25分の上限に達した場合など、Collectorが理由を特定できませんでした。

{% hint style="info" %}
フリーズイベントにはCollector 26.6以降が必要で、Collectorがこれを報告するのはWindowsデバイスのみです。
{% endhint %}

#### フリーズの数

Collectorは、Windows API `IsHungAppWindow` を通じてアプリケーションの開いているウィンドウにメッセージを送信し、アプリケーションの応答性を確認します。[マイクロソフトのドキュメント](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-ishungappwindow)によると、アプリケーションは以下の場合に応答がないと見なされます：

* 入力を待っていない場合。
* 起動処理を行っていない場合。
* 内部的な5秒間のタイムアウト期間内に `PeekMessage` 関数を呼び出していない場合。

CollectorはこのAPIを30秒ごとにサンプリングし、アプリケーションが5秒のウィンドウ内に新しいユーザー入力を確認できなかった場合にのみフリーズを報告します。アプリケーションのフリーズには、メインUIスレッドでの過剰な処理など、複数の原因が考えられます。この検出はアプリケーションログとは独立して機能します。アプリケーションログでは通常、重大な障害のみが記録されます。

{% hint style="warning" %}
`number_of_freezes` フィールドは後方互換性のため変更されず、引き続きDEXスコアの「フリーズ」コンポーネントにデータを提供します。 Nexthinkはこのフィールドを廃止する予定であり、代わりに `execution.freezes` を使用することを推奨しています。
{% endhint %}

### macOSでのアプリケーションが応答しない <a href="#applicationnotresponding-applicationnotrespondingonmacos" id="applicationnotresponding-applicationnotrespondingonmacos"></a>

macOSでは、Collectorはオペレーティングシステムログを参照することで、アプリケーションが応答していないかどうかを確認します。 macOSでは、従業員がアプリケーションを強制終了した後にのみ、応答なしが報告されます。

## <br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.nexthink.com/platform/ja/references/database-information-and-organization/application-not-responding.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
