PBS memory and virtualmemory (Fixes BUGZ-3928)
Begin arcbot message
This merge request is automatically copied from !1164 (merged) orginally made by @maikenp
End arcbot message
Fix suggested by Yuri Ivanov to fix termination by PBS due to exceeded virtual memory limits.