Set memory limit on a instance.

Signed-off-by: Chuck Short <chuck.short@canonical.com>