7za 出现 Can't allocate required memory

  • I have some KiXtart (Windows scripting) scripts that have been working great for almost a year.

    Today, 7-zip is producing this error:

    ERROR: Can't allocate required memory!

    I am exec-ing 7z.exe with:

    C:\Program Files\7-Zip\7z.exe a -bd -mx=9 -mmt=4 <7ZFILE> <SQLBACKUPFILE> <SQLBACKUPHASHFILE>

    This is on Windows 2008 R2 64-Bit Standard with 32GB of RAM. It also has SQL Server 2008 R2 installed on it, which means that SQL Server is taking most (sometimes all) of the available 32GB. 

    But I don't think that's the issue necessarily, because these scripts haven't changed in well over six months.

    Here is the output I capture:
    2012/12/07 05:30:14 - BEGIN - Compress

    7-Zip  9.20  Copyright (C) 1999-2010 Igor Pavlov  2010-11-18
    Scanning

    Creating archive <FILENAMEREMOVED>.7z

    ERROR: Can't allocate required memory!
    2012/12/07 05:30:14 - END - Compress

    Windows 2008 R2 64-bit Standard Edition
    dual 6 Core Xeon E5645 2.40 GHz Dell R710
    32 GB RAM

    Any ideas of what to look for?

     
    • Igor Pavlov 
      Igor Pavlov
      2012-12-07

      Maybe there is limitation for available process memory?
      Try the command:

      7z.exe b -md27

       
      • Allen Hewes 
        Allen Hewes
        2012-12-07

        Well I am sure that most of the memory is taken by SQL Server.

        So this error message means what it states, that 7z.exe can't alloc()/malloc()?

        Decreasing the dictionary size helps?

         
        • Igor Pavlov 
          Igor Pavlov
          2012-12-14

          1) 7-Zip uses different functions to allocate memory, including VirtalAlloc and malloc.

          2) Also you can see that error, if you there is some hardware error (like RAM error).

        • 0
          点赞
        • 0
          收藏
          觉得还不错? 一键收藏
        • 0
          评论

        “相关推荐”对你有帮助么?

        • 非常没帮助
        • 没帮助
        • 一般
        • 有帮助
        • 非常有帮助
        提交
        评论
        添加红包

        请填写红包祝福语或标题

        红包个数最小为10个

        红包金额最低5元

        当前余额3.43前往充值 >
        需支付:10.00
        成就一亿技术人!
        领取后你会自动成为博主和红包主的粉丝 规则
        hope_wisdom
        发出的红包
        实付
        使用余额支付
        点击重新获取
        扫码支付
        钱包余额 0

        抵扣说明:

        1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
        2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

        余额充值