---
schema_version: "1"
id: 409a1e2bc6169d02d2ce9f541e09b5bcb948e33aa75c213619da8258c1a18ee0
title: 硬體
collection: tableau
version: current
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/current/zh-tw/server/rmt-incidents-hardware.md
canonical_url: https://help.tableau.com/current/server/zh-tw/rmt-incidents-hardware.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 9f5d4b737e9be69327ee26ae7342055e1c0a9409ac2622c0532475321a2e17da
description: Configure hardware incidents to monitor server CPU, memory, and disk in RMT.
---
[跳至主要內容](#main-content)

# 硬體事件

_Hardware_ 事件會監視伺服器本身。這些可用來協助找出可能會影響 Tableau Server 效能的伺服器問題。

您可以為以下問題設定閾值：

- CPU 使用率
- 可用記憶體
- 記憶體使用量
- 可用磁碟空間

預設情況下，安裝新 Tableau Resource Monitoring Tool 時會設定以下事件：

- 當可用磁碟空間低於 10 GB 10 分鐘或更長時間時，系統會記錄警告事件，當可用磁碟低於 5 GB 10 分鐘或更長時間時，系統會記錄嚴重事件。
- 當可用記憶體低於 8 GB 超過 10 分鐘時，系統會記錄警告事件。
- 當整個伺服器的 CPU 使用率為 80% 或以上 5 分鐘時，系統會記錄警告事件。

**附註：**與記憶體相關的事件會以位元組的二進位倍數進行設定。

可以使用 RMT 伺服器 Web 介面或透過更新組態檔 `config.json` 來設定臨界值。

若要設定硬體事件的閾值，請在**「管理」**功能表下選擇**「組態」**，再前往**「事件」**索引標籤。

針對 **CPU 使用率**設定以下項目：

若要設定硬體事件的閾值，請在**「管理」**功能表下選擇**「組態」**，再前往**「事件」**索引標籤。

<table style="width: 100%;" class="simple-table"><colgroup><col><col><col></colgroup><thead><tr><th>主要</th><th>是否為必要項目？</th><th>描述</th></tr></thead><tbody><tr><td><b>嚴重性</b></td><td>必要</td><td><p>請參閱<a href="https://help.tableau.com/current/server/zh-tw/rmt-incidents-index-incidents.htm#incident-severity-levels">事件嚴重性層級</a>。</p></td></tr><tr><td><b>處理序</b></td><td>必要</td><td>閾值適用於整個 Tableau Server 或指定的單個執行序。</td></tr><tr><td><b>開始閾值</b></td><td>必要</td><td>CPU 使用率必須超過建立和監控事件之前指定的值。設定此閾值的百分比和持續時間。</td></tr><tr><td><b>結束閾值</b></td><td>選用</td><td>CPU 使用率必須低於認定事件已解決之前指定的值。</td></tr></tbody></table>

針對**可用記憶體**設定以下項目：

<table style="width: 100%;" class="simple-table"><colgroup><col><col><col></colgroup><thead><tr><th>主要</th><th>是否為必要項目？</th><th>描述</th></tr></thead><tbody><tr><td><b>嚴重性</b></td><td>必要</td><td><p>請參閱<a href="https://help.tableau.com/current/server/zh-tw/rmt-incidents-index-incidents.htm#incident-severity-levels">事件嚴重性層級</a>。</p></td></tr><tr><td><b>開始閾值</b></td><td>必要</td><td>可用記憶體必須低於建立和監控事件之前指定的值。設定此閾值的百分比和持續時間。</td></tr><tr><td><b>結束閾值</b></td><td>選用</td><td>可用記憶體必須高於認定事件已解決之前指定的值。</td></tr></tbody></table>

針對**記憶體使用量**設定以下項目：

<table style="width: 100%;" class="simple-table"><colgroup><col><col><col></colgroup><thead><tr><th>主要</th><th>是否為必要項目？</th><th>描述</th></tr></thead><tbody><tr><td><b>嚴重性</b></td><td>必要</td><td><p>請參閱<a href="https://help.tableau.com/current/server/zh-tw/rmt-incidents-index-incidents.htm#incident-severity-levels">事件嚴重性層級</a>。</p></td></tr><tr><td><b>處理序</b></td><td>必要</td><td>閾值適用於整個 Tableau Server 或指定的單個執行序。</td></tr><tr><td><b>開始閾值</b></td><td>必要</td><td>記憶體使用量必須等於建立和監控事件之前指定的值。設定此閾值的百分比和持續時間。</td></tr><tr><td><b>結束閾值</b></td><td>選用</td><td>記憶體使用量必須低於認定事件已解決之前指定的值。</td></tr></tbody></table>

針對**可用磁碟空間**設定以下項目：

<table style="width: 100%;" class="simple-table"><colgroup><col><col><col></colgroup><thead><tr><th>主要</th><th>是否為必要項目？</th><th>描述</th></tr></thead><tbody><tr><td><b>嚴重性</b></td><td>必要</td><td><p>請參閱<a href="https://help.tableau.com/current/server/zh-tw/rmt-incidents-index-incidents.htm#incident-severity-levels">事件嚴重性層級</a>。</p></td></tr><tr><td><b>開始閾值</b></td><td>必要</td><td>可用磁碟空間必須低於建立和監控事件之前指定的值。設定此閾值的百分比和持續時間。</td></tr><tr><td><b>結束閾值</b></td><td>選用</td><td>可用磁碟空間必須高於認定事件已解決之前指定的值。</td></tr></tbody></table>

針對**磁碟佇列長度**設定以下項目：

<table style="width: 100%;" class="simple-table"><colgroup><col><col><col></colgroup><thead><tr><th>主要</th><th>是否為必要項目？</th><th>描述</th></tr></thead><tbody><tr><td><b>嚴重性</b></td><td>必要</td><td><p>請參閱<a href="https://help.tableau.com/current/server/zh-tw/rmt-incidents-index-incidents.htm#incident-severity-levels">事件嚴重性層級</a>。</p></td></tr><tr><td><b>開始閾值</b></td><td>必要</td><td>磁碟佇列長度必須等於建立和監控事件之前指定的值。設定此閾值的百分比和持續時間。</td></tr><tr><td><b>結束閾值</b></td><td>選用</td><td>磁碟佇列長度必須低於認定事件已解決之前指定的值。</td></tr></tbody></table>

定義兩個硬體事件的 `config.json` 程式碼片段範例如下：

```
{  
 "monitoring":  {  
    "incidents":  {  
      "triggers":  [  
        {  
          "counter":  "DiskSpaceAvailableKB",  
          "severity":  "warning",  
          "threshold":  1048576  
        },  
        {  
          "counter":  "ProcessorTimePercent",  
          "severity":  "warning",  
          "threshold":  0.95,  
          "thresholdDuration":  300000,  
          "endThreshold":  0.90,  
          "endThresholdDuration":  5000  
        }  
      ]  
    }  
  }  
}
```

- **DiskSpaceAvailableKB** 事件會在可用磁碟空間低於 10 GB 時觸發警告。
- **ProcessorTimePercent** 事件會在 CPU 使用率至少有 95% 且持續超過 5 分鐘的情況下觸發警告。CPU 使用率低於 90% 達 5 秒時，就會認定該事件已解決。

預設設定可能不符合您的需求，並可能根據您的環境變更。舉例來說，若要識別碼為「staging-environment」的環境在可用磁碟空間低於 2 GB 時觸發警告，設定如下所示：

```
{  
  "environments":  {  
    "staging-environment":  {  
     "monitoring":  {  
        "incidents":  {  
          "triggers":  [  
            {  
              "counter":  "DiskSpaceAvailableKB",  
              "severity":  "warning",  
              "threshold":  2097152  
            }  
          ]  
        }  
      }  
    }  
  }  
}
```

<table style="width: 100%;" class="simple-table"><colgroup><col><col><col><col></colgroup><thead><tr><th>主要</th><th>資料類型</th><th>是否為必要項目？</th><th>描述</th></tr></thead><tbody><tr><td><code style="font-style: normal;">counter</code></td><td>字串</td><td>必要</td><td><p>要監視之硬體事件的識別碼。可用選項有：</p><ul><li><code>ProcessorTimePercent</code></li><li><code>DiskSpaceAvailableKB</code></li><li><code>DiskQueueTotalLength</code></li><li><code>MemoryAvailableKB</code></li><li><code>MemoryCommittedKB</code></li></ul></td></tr><tr><td><code>severity</code></td><td>字串</td><td>選用</td><td><p>請參閱<a href="https://help.tableau.com/current/server/zh-tw/rmt-incidents-index-incidents.htm#incident-severity-levels">事件嚴重性層級</a>。預設值：<code>Warning</code></p></td></tr><tr><td><code>threshold</code></td><td>數字</td><td>必要</td><td>必須超過閾值才能監視事件。</td></tr><tr><td><code>thresholdDuration</code></td><td>數字</td><td>選用</td><td>在觸發事件之前要監視情況的時間長度（以毫秒為單位）。如未指定，只要達到 <code>threshold</code> 就會觸發事件。</td></tr><tr><td><code>endThreshold</code></td><td>數字</td><td>選用</td><td>必須超過閾值，才會認定事件已解決。</td></tr><tr><td>endThresholdDuration</td><td>數字</td><td>選用</td><td>在完成事件之前要監視情況的時間長度（以毫秒為單位）。如未指定，只要達到 <code>endThreshold</code>，事件即告解決。如未定義 <code>endThreshold</code>，則會使用 <code>threshold</code>。</td></tr></tbody></table>

## 誰可以執行此動作

Resource Monitoring Tool 管理員或具備**伺服器/環境管理**角色的 Resource Monitoring Tool 使用者。