Java Memory checkMemory()

Here you can find the source of checkMemory()

Description

check Memory

License

Open Source License

Declaration

public static long checkMemory() 

Method Source Code

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

public class Main {
    public static long checkMemory() {
        return (Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory());
    }//w w w.  ja  v a 2  s. c  o m
}

Related

  1. alignMemory(long numBytes)
  2. checkLowMemory()
  3. checkMinMemory(long min)
  4. compactMemory()
  5. correctMemoryValue(int memory)
  6. displayMemory(String label, long bytes)