How do I find the physical memory size in Java?

前端 未结 7 887
心在旅途
心在旅途 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:47

    Under linux you can use sysinfo(2). I don't think it's actually possible from pure java.

提交回复
热议问题