added memory usage check for server related #16