Process Memory Size
The following snippet can be used to examine how much memory the process is consuming.
use System.Diagnostics class Program def main p = Process.getCurrentProcess kb = 1024 mb = kb * kb trace GC.getTotalMemory(false) / mb trace p.privateMemorySize64 / mb trace p.workingSet64 / mb