code: public static nsmemory_stats get(nitro_service service, String pool) throws Exception{
  		nsmemory_stats obj = new nsmemory_stats();
  		obj.set_pool(pool);
  		nsmemory_stats response = (nsmemory_stats) obj.stat_resource(service);
  		return response;
  	}
docs: Use this API to fetch statistics of nsmemory_stats resource of given name .