已收回快取物件 (SharePoint Server)Cached objects have been evicted (SharePoint Server)

摘要: 了解如何解決 SharePoint Health Analyzer 規則「已收回快取物件」。Summary: Learn how to resolve the SharePoint Health Analyzer rule "Cached objects have been evicted."

規則名稱: 已收回快取物件Rule Name: Cached objects have been evicted

摘要: 當快取主機上之快取服務所耗用記憶體超過下限標準臨界值時,已過期的物件將會收回。當記憶體耗用量超過上限標準臨界值時,物件會從記憶體收回 (無論是否已過期),直到記憶體耗用量回復至下限標準。後續的快取物件可能會重新路由傳送給其他主機,以維持記憶體的最佳分佈。Summary: When the memory consumption of the cache service on a cache host exceeds the low watermark threshold, objects that have already expired are evicted. When memory consumption exceeds the high watermark threshold, objects are evicted from memory, whether they have expired or not, until memory consumption returns to the low watermark. Subsequently cached objects may be rerouted to other hosts to maintain an optimal distribution of memory.

原因: 快取叢集中沒有足夠的記憶體。Cause: There is not sufficient memory in the cache cluster.

解決方案: 將更多 RAM 新增至伺服器Resolution: Add more RAM to the server

  • 您可以新增更多 RAM 至伺服器以增加記憶體。若要識別發生失敗狀況的伺服器:在 SharePoint 管理中心中,按一下 [監視]**** 區段中的 [檢閱問題與解決方案]*,然後在 [失敗的伺服器]* 清單中尋找伺服器名稱。如果伺服器陣列中有多個發生失敗狀況的伺服器,您必須在每個失敗的伺服器上重複此解決方案。You can add more RAM to the server to increase the memory. To identify the failing server: in CentralAdmin_1st, in the Monitoring section, click Review problems and solutions, and then find the name of the server in the Failing Servers list. If there are multiple failing servers in a server farm, you must repeat this resolution on each failing server.

解決方案:增加分散式快取服務的記憶體配置Resolution: Increase the memory allocation of the distributed cache

  1. 確認您具備下列成員身分:Verify that you have the following memberships:

    • SQL Server 執行個體上的 securityadmin 固定伺服器角色。securityadmin fixed server role on the SQL Server instance.

    • 所有要更新之資料庫上的 db_owner 固定資料庫角色。db_owner fixed database role on all databases that are to be updated.

    • 正在執行 Microsoft PowerShell Cmdlet 之所在伺服器上的系統管理員群組。Administrators group on the server on which you are running the Microsoft PowerShell cmdlets.

    • 伺服器陣列管理員群組。Farm Administrators group.

      系統管理員可以使用 Add-SPShellAdmin Cmdlet 授與使用 SharePoint Server Cmdlet 的權限。An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server cmdlets.

      注意

      如果您不具備上述權限,請連絡安裝程式系統管理員或 SQL Server 系統管理員要求權限。如需 PowerShell 權限的其他資訊,請參閱 Add-SPShellAdminIf you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about PowerShell permissions, see Add-SPShellAdmin.

  2. 啟動 SharePoint 管理命令介面。Start the SharePoint Management Shell.

  3. 檢查使用量的目前分散式快取設定。若要執行此動作,請執行下列命令:Check the current distributed cache settings from usage. To do this, run the following command:

    Get-SPDistributedCacheClientSetting

    如需詳細資訊,請參閱<Get-SPDistributedCacheClientSettingFor more information, see Get-SPDistributedCacheClientSetting

  4. 停止伺服器陣列中所有快取主機上的分散式快取服務。若要執行此動作,請在每部快取主機上執行下列命令:Stop the Distributed Cache service on all cache hosts in the farm. To do this, run the following command on each cache host:

    Stop-SPDistributedCacheServiceInstance -Graceful

    如需詳細資訊,請參閱<在 SharePoint Server 中管理分散式快取服務>中的「執行分散式快取服務的正常關機」。For more information, see "Perform a graceful shutdown of the Distributed Cache service" in Manage the Distributed Cache service in SharePoint Server.

  5. 若要增加分散式快取服務的快取大小,請僅在任何快取主機上於 PowerShell 命令提示字元中執行下列命令一次:To increase the cache size of the Distributed Cache service, run the following command one time only on any cache host at the PowerShell command prompt:

    Update-SPDistributedCacheSize -CacheSizeInMB CacheSize

    其中:Where:

    • CacheSize 是快取大小的記憶體配置分派 (MB)。預設值為系統 RAM 總數的 5%。此值不應大於系統 RAM 總數的 40 %,上限為 16 (GB)。CacheSize is the cache size's memory allocation assignment in megabytes (MB). The default value is 5 percent of total system RAM. This value should not be more than 40 percent of total system RAM with a maximum limit of 16 gigabytes (GB).
  6. 啟動所有快取主機上的分散式快取服務。若要啟動分散式快取服務,請前往管理中心中的 [伺服器上的服務]**** 頁面 ,然後啟動伺服器陣列所有快取主機上的分散式快取服務。Start the Distributed Cache service on all cache hosts. To start the Distributed Cache service, go to the Services on Server page in CentralAdmin_2nd, and start the Distributed Cache service on all cache hosts in the farm.

另請參閱See also

概念Concepts

在 SharePoint Server 中管理分散式快取服務Manage the Distributed Cache service in SharePoint Server

規劃 SharePoint Server 中的摘要和分散式快取服務Plan for feeds and the Distributed Cache service in SharePoint Server

其他資源Other Resources

Update-SPDistributedCacheSizeUpdate-SPDistributedCacheSize

規劃與使用分散式快取服務Planning and using the Distributed Cache service