acidzombie24 acidzombie24 - 4 months ago 34
C# Question

How to get memory available or used in C#

How can I get the available RAM or memory used by the application?

Answer

You can use:

Process proc = Process.GetCurrentProcess();

To get the current process and use:

proc.PrivateMemorySize64;

To get the private memory usage. For more information look at this link.