CP-2190 for PR-1221: fix memory monitoring