--max-memory-restart implemented