public long totalMemory(){
  return totalMemoryImpl();
}

public long totalMemory ( ) { return totalMemoryImpl ( ) ; }
returns the total amount of memory in the java virtual machine . the value returned by this method may vary over time , depending on the host environment . note that the amount of memory required to hold an object of any given type may be implementation - dependent .
