Environment.WorkingSet Property gets the amount of physical memory mapped to the process context.
Imports System Class Sample Public Shared Sub Main() Console.WriteLine("WorkingSet: {0}", Environment.WorkingSet) End Sub 'Main End Class 'Sample