.vmdk
files) open.vSphere HA unsuccessfully failed over this virtual machine. vSphere HA will retry if the maximum number of attempts has not been exceeded. Reason: Cannot allocate memory.
/var/log/messages
or /var/log/vmkernel.log
file, you see entries similar to:vmkernel: cpu2:1410)WARNING: Heap: 1370: Heap_Align(vmfs3, 4096/4096 bytes, 4 align) failed. caller: 0x8fdbd0
vmkernel: cpu2:1410)WARNING: Heap: 1266: Heap vmfs3: Maximum allowed growth (24) too small for size (8192)
cpu4:1959755)WARNING:Heap: 2525: Heap vmfs3 already at its maximum size. Cannot expand.
cpu4:1959755)WARNING: Heap: 2900: Heap_Align(vmfs3, 2099200/2099200 bytes, 8 align) failed. caller: 0x418009533c50
cpu7:5134)Config: 346: "SIOControlFlag2" = 0, Old Value: 1, (Status: 0x0)
Failed to initialize migration at source
The VM failed to resume on the destination during early power on.
Reason: 0 (Cannot allocate memory).
Cannot open the disk 'vmdk_location' or one of the snapshot disks it depends on.
An unexpected error was received from the ESX host while powering on VM vm-xxx. Reason: (Cannot allocate memory)
vmkfstools -i
command fails and you see the error:Clone: 43% done. Failed to clone disk: Cannot allocate memory (786441)
Could not complete network copy for file
/var/log/vmfs/volumes/DatastoreName/VirtualMachineName/vmware.log
file, you see messages similar to:vmx| FileIOErrno2Result: Unexpected errno=12, Cannot allocate memory
vmx| AIOGNRC: Failed to open '/vmfs/volumes/xxxx-flat.vmdk' : Cannot allocate memory (c00000002) (0x2013).
vmx| DISKLIB-VMFS : "/vmfs/volumes/xxxx-flat.vmdk" : failed to open (Cannot allocate memory): AIOMgr_Open failed. Type 3
vmx| DISKLIB-LINK : "/vmfs/volumes/xxxx.vmdk" : failed to open (Cannot allocate memory).
vmx| DISKLIB-CHAIN : "/vmfs/volumes/xxxx.vmdk" : failed to open (Cannot allocate memory).
vmx| DISKLIB-LIB : Failed to open '/vmfs/volumes/xxxx.vmdk' with flags 0xa Cannot allocate memory (786441).
vmx| DISK: Cannot open disk "/vmfs/volumes/xxxx.vmdk": Cannot allocate memory (786441).
vmx| Msg_Post: Error
vmx| [msg.disk.noBackEnd] Cannot open the disk '/vmfs/volumes/xxxx.vmdk' or one of the snapshot disks it depends on.
vmx| [msg.disk.configureDiskError] Reason: Cannot allocate memory.
VMFS3.MaxHeapSizeMB
. VMFS3.MinHeapSizeMB
option.VMFS3.MinHeapSizeMB
. The esxcfg-advcfg command can be used to set/get the maximum heap size for all VMFS file systems.
To check the exiting value, run the command:
Version/build | Default heap amount | Default allowed open VMDK storage per host | Minimum heap amount | Maximum heap amount | Maximum value for minimum heap size | Maximum open VMDK storage per host |
ESXi/ESX 3.5/4.0 | 16 MB | 4 TB | N/A | N/A | N/A | N/A |
ESXi/ESX 4.1 | 80 MB | 8 TB | N/A | 128 MB | 128 | 32 TB |
ESXi 5.0 Update 2 (914586) and earlier | 80 MB | 8 TB | N/A | 256 MB | 255 | 25 TB |
ESXi 5.0 Patch 5 (1024429) and later | 256 MB | 60 TB | 256 MB | 640 MB | 255 | 60 TB |
ESXi 5.1 Patch 1 (914609) and earlier | 80 MB | 8 TB | N/A | 256 MB | 255 | 25 TB |
ESXi 5.1 Update 1 (1065491) and later | 256 MB | 60 TB | 256 MB | 640 MB | 255 | 60 TB |