Default agent maxmemory to the package setting

Don't override the config if unset