How to retrieve available RAM from Windows command line?

前端 未结 11 670
-上瘾入骨i
-上瘾入骨i 2020-12-23 09:44

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, si

11条回答
  •  一生所求
    2020-12-23 10:37

    Bit old but I wanted to know similar. Just adding the solution I came across since IMO the best answer came from Everardo w/ Physical Memory

    wmic OS get FreePhysicalMemory /Value

    This lead me to look deeper into wmic... Keep in mind Free Physical Memory is not the type to look at.

    wmic OS get FreePhysicalMemory,FreeVirtualMemory,FreeSpaceInPagingFiles /VALUE

    This returns something like...

    FreePhysicalMemory=2083440
    FreeSpaceInPagingFiles=3636128
    FreeVirtualMemory=842124
    

提交回复
热议问题