適用於 Windows 的 Avamar 用戶端:Avamar 備份未完成,並出現錯誤「avtar 錯誤 <18866>:快取檔案記憶體不足」

Summary: 本 KB 文章的目的是解決特定情況:針對該類型的快取問題,用戶端無法允許更多記憶體讓快取檔案增長,以及 KB 文章 495969 不適用。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms



在這種情況下,我們會看到與 KB 中相同的問題495969但是,由於 Windows 用戶端上的環境問題,解決方案不適用。 此問題可能會影響任何外掛程式,例如在本例中,錯誤會以下列方式顯示:   
  • 如為 FS 備份:   
avtar Info <8650>: Opening hash cache file 'C:\Program Files\avs\var\p_cache.dat'
avtar Error <18866>: Out of memory for cache file 'C:\Program Files\avs\var\p_cache.dat' size 805306912
avtar FATAL <5351>: MAIN: Unhandled internal exception Unix exception Not enough space

  • 針對 VSS 備份:   
avtar Info <8650>: Opening hash cache file 'C:\Program Files\avs\var\p_cache.dat'
avtar Error <18866>: Out of memory for cache file 'C:\Program Files\avs\var\p_cache.dat' size 1610613280
avtar FATAL <5351>: MAIN: Unhandled internal exception Unix exception Not enough space

  • 如需 Oracle 備份:   
avtar Info <8650>: Opening hash cache file 'C:\Program Files\avs\var\clientlogs\oracle-prefix-1_cache.dat'
avtar Error <18866>: Out of memory for cache file 'C:\Program Files\avs\var\clientlogs\oracle-prefix-1_cache.dat' size 100663840
avtar FATAL <5351>: MAIN: Unhandled internal exception Unix exception Not enough space

or this variant:   

avtar Info <8650>: Opening hash cache file 'C:\Program Files\avs\var\clientlogs\oracle-prefix-1_cache.dat'
avtar Error <18864>: Out of restricted memory for cache file 'C:\Program Files\avs\var\clientlogs\oracle-prefix-1_cache.dat' size 100663840
avtar FATAL <5351>: MAIN: Unhandled internal exception Unix exception Not enough space 
avoracle Error <7934>: Snapup of <oracle-db> aborted due to rman terminated abnormally - check the logs


  • 隨著 RMAN 記錄報告:   
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup plus archivelog command at 06/14/2018 22:17:40
RMAN-03009: failure of backup command on c0 channel at 06/14/2018 22:17:15
ORA-04030: out of process memory when trying to allocate 1049112 bytes (KSFQ heap,KSFQ Buffers)
Recovery Manager complete.


起初,人們認為快取檔案無法擴大大小,因為「hashcachemax」值不正確。

用戶端有足夠的可用 RAM(總 RAM 為 48GB),因此我們將標誌的值從 -16(最大 3GB 檔大小)增加到 -8(最大 6GB 檔大小)。

但問題仍然存在,磁碟空間也不是問題,有大量 GB 的可用空間。

Cause

使用工程團隊的測試二進位檔進行進一步調查會導致以下事實:MS OS 沒有釋放足夠的未使用和連續記憶體,以便將整個哈希緩存檔分配/載入到記憶體中以進行備份操作。

嘗試使用測試二進位檔,該二進位檔將以較小的部分分配記憶體,以查看我們是否可以達到操作系統允許將完整文件p_cache.dat載入到記憶體中的程度,但這也沒有説明。由於某種原因,操作系統仍然不允許將檔載入到記憶體中。

根本原因隱藏在操作系統的某個位置,但在這種情況下,我們沒有讓 MS 團隊參與他們的進一步調查。

相反,我們找到了一種方法來解決將緩存檔設置為較小的問題。請參閱下方「解決方案」一節中的詳細資料。

Resolution

為了解決此問題,我們將哈希緩存檔設置為較小的大小,以便操作系統在將其分配到記憶體中時不會出現問題。

在這種情況下,注意到操作系統在分配較小的大小(如 200+ MB)時也存在問題,因此我們決定使用以下標誌將p_cache.dat大小重新調整為 100MB:   

--hashcachemax=100

這樣,哈希緩存檔將永遠不會增長到 100MB,並且會覆蓋舊條目。

添加該標誌后,將通過重命名或刪除p_cache.dat來回收緩存檔(重命名是首選選項)。

在第一次備份後,預期會花費比平常更長的時間 (以重新建置快取檔案),此問題應該已解決。

Additional Information

  • 在這種情況下不建議使用按需分頁緩存,因為備份將定向到 GSAN 存儲,因此使用了單體分頁緩存。
  • 需求分頁的目的是為將備份傳送至 DataDomain 儲存裝置獲得優勢。

Affected Products

Avamar

Products

Avamar, Avamar Client for Windows, Avamar Plug-in for Oracle
Article Properties
Article Number: 000060137
Article Type: Solution
Last Modified: 17 Jun 2025
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.