= Process Memory Size = The following snippet can be used to examine how much memory the process is consuming. {{{ #!cobra 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 }}} == See Also == * CobraCookbook * http://stackoverflow.com/questions/31096/process-memory-size-different-counters