getAvailableMemory