How do I find the physical memory size in Java?

前端 未结 7 844
心在旅途
心在旅途 2021-01-07 22:02

I\'m writing an installer that will tune the configuration of the product for the particular hardware on which it will be run. In particular, I want to determine how much p

相关标签:
7条回答
  • 2021-01-07 22:53

    For windows, you'll need to access WMI - this will get you going: Accessing Windows Management Instrumentation (WMI) from Java.

    You'll want to use this section of WMI: Win32_LogicalMemoryConfiguration.

    There may be a pure java way of doing this, but I am unaware of it.

    0 讨论(0)
提交回复
热议问题