Monitor memory peak size rather than current size.