renamed method to getMaxMemoryMB