public interface GlobalMemory
| Modifier and Type | Method and Description |
|---|---|
long |
getAvailable()
The amount of physical memory currently available, in bytes.
|
long |
getPageSize()
The number of bytes in a memory page
|
PhysicalMemory[] |
getPhysicalMemory()
Physical memory, such as banks of memory.
|
long |
getTotal()
The amount of actual physical memory, in bytes.
|
VirtualMemory |
getVirtualMemory()
Virtual memory, such as a swap file.
|
long getTotal()
long getAvailable()
long getPageSize()
VirtualMemory getVirtualMemory()
PhysicalMemory[] getPhysicalMemory()
On Linux, requires elevated permissions. On FreeBSD and Solaris, requires installation of dmidecode.
Copyright © 2020. All rights reserved.