Java Memory writeMemory()

Here you can find the source of writeMemory()

Description

write Memory

License

Open Source License

Declaration

public static void writeMemory() 

Method Source Code

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

public class Main {
    public static void writeMemory() {
        Runtime rt = Runtime.getRuntime();
        System.out.println("Total " + rt.totalMemory() + "\tMax " + rt.maxMemory() + "\tFree " + rt.freeMemory());
    }/*from  w  ww .jav a2 s.  c  om*/
}

Related

  1. simpleMemory()
  2. testMemory(long bytesToTest)
  3. throwOutOfMemoryError()
  4. unlimitMemory()
  5. waitForMemory(double memory)