Sample 0 [from 142 instances]

Class350.getHeapUtilizationStats(){
        final Runtime runtime = Runtime.getRuntime();
        return "Used Memory: " (runtime.totalMemory() - runtime.freeMemory()) / mb + "M" +
               "\nFree Memory: " + runtime.freeMemory() / mb  + "M" +
               "\nTotal Memory: " + runtime.totalMemory() / mb  + "M" +
               "\nMax Memory: " + runtime.maxMemory() / mb  + "M";
}


Sample 1 [from 11 instances]

Class580.log(final int i){
        final Runtime runtime = Runtime.getRuntime();
        final long max = runtime.maxMemory();
        final long total = runtime.totalMemory();
}


Sample 2 [from 7 instances]

Class230.logMemoryConsumption(Level level)#0{
      maxMemory = runtime.maxMemory() 1048576;
}


Sample 3 [from 5 instances]

Class280.execute(SessionData data,Element command)#20{
        double maxMemory = (double)runtime.maxMemory()/(1024*1024);
}