Use the correct namespace for setMaxMemory