-
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
2012-12-07Maybe there is limitation for available process memory?
Try the command:
7z.exe b -md27
-
Allen Hewes
2012-12-07Well 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
2012-12-141) 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).