mxosrvr exit when heapsize become large, code changed after last review

Related to change https://review.trafodion.org/#/c/643/

Change-Id: I084b3c704e3651503286e8fc9f60b17ca0f18fc7
Merge "mxosrvr exit when heapsize become large, code changed after last review"