Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to retrieve available RAM from Windows command line?

Is there a command line utility within Windows or third-party program that can retrieve available RAM on a machine? (Since I don't believe this can be done in pure JAVA, since it is run within a virtual machine, that has preset / allocated RAM)?

like image 337
Mike Avatar asked Feb 01 '12 12:02

Mike


3 Answers

systeminfo is a command that will output system information, including available memory

like image 101
diggingforfire Avatar answered Nov 14 '22 11:11

diggingforfire


wmic OS get FreePhysicalMemory /Value
like image 33
Everardo Avatar answered Nov 14 '22 12:11

Everardo


Use wmic computersystem get TotalPhysicalMemory. E.g.:

C:\>wmic computersystem get TotalPhysicalMemory
TotalPhysicalMemory
4294500352
like image 22
PA. Avatar answered Nov 14 '22 11:11

PA.