Java Memory Total memoryTotal()

Here you can find the source of memoryTotal()

Description

memory Total

License

Open Source License

Declaration

public static long memoryTotal() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static Runtime runtime;

    public static long memoryTotal() {
        long mem = 0;

        for (int i = 0; i < 10; i++)
            mem += runtime.totalMemory();
        mem /= 10;// w  w w  .  j a  v  a  2  s. co m
        return mem;
    }
}

Related

  1. getTotalMemory()
  2. getTotalMemory(boolean preRunGarbageCollector)
  3. getTotalMemoryInKB()
  4. getTotalMemoryInMb()
  5. jvmTotalMemory(String size, Boolean txtByte)
  6. totalMemory()
  7. totalMemory()
  8. totalMemory()
  9. totalMemory()