Class MemoryUtils

java.lang.Object
VASSAL.tools.lang.MemoryUtils

public class MemoryUtils extends Object
A utility class for getting information about system memory.
  • Constructor Details

    • MemoryUtils

      protected MemoryUtils()
  • Method Details

    • getPhysicalMemory

      public static long getPhysicalMemory()
      Gets the amount of physical memory (RAM) in this machine, in bytes.
      Returns:
      the amount of RAM, in bytes; or -1 if the amount of RAM cannot be queried.
    • main

      public static void main(String[] args)