Avamar Client for Windows:Avamar 备份未完成,并显示错误“avtar Error <18866>:Windows 客户端上的“缓存文件内存不足”

Summary: 本知识库文章旨在解决一种特定情况,对于该类型的高速缓存问题,客户端无法允许更多内存以使高速缓存文件增长,以及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



在这种情况下,我们遇到了与知识库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.