Tag Archives: Virtual

Get Free/Available Physical and Virtual Memory in VB 2008, VB 2010, and Higher

Click Star to Rate Post
1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 5.00 out of 5)
 

This will get the TOTAL amount of Free Physical Ram (Available Memory) and how much Free Virtual Memory is available. Uses the MY. interface added in VB.NET 2005.

        '
        'Get the amount of Physical and Virtual Memory that is available.
        '
        MsgBox(" Available Physical Memory: " & My.Computer.Info.AvailablePhysicalMemory.ToString & " bytes")

        MsgBox(" Available Virtual Memory: " & My.Computer.Info.AvailableVirtualMemory.ToString & " bytes")