Add memory-limit option for rpc server command