[MAESTRO-2510] added maxmemory parameter.