Java Utililty Methods Memory Max

List of utility methods to do Memory Max

Description

The list of methods to do Memory Max are organized into topic(s).

Method

StringgetMaxMemoryStr()
get Max Memory Str
long mem = Runtime.getRuntime().maxMemory();
return bytesToString(mem);
longgetMemoryMax()
get Memory Max
return Runtime.getRuntime().maxMemory();
longgetMemoryMax()
Get the maximum memory in KB.
long max = Runtime.getRuntime().maxMemory();
return max / 1024;
StringjvmMaxMemory(String size, Boolean txtByte)
Obtain JVM's Maximum Memory.
return convertByteSize(Runtime.getRuntime().maxMemory(), size, txtByte);
doublemaxMemory()
Returns max memory available MB
Runtime runtime = Runtime.getRuntime();
return maxMemory(runtime);
longmaxMemory()
max Memory
return Runtime.getRuntime().maxMemory();
longmaxMemory()
max Memory
return runtime.maxMemory();
longmaxMemory()
max Memory
return Runtime.getRuntime().maxMemory();
StringmaxMemory()
max Memory
long maxMemory = Runtime.getRuntime().maxMemory();
return convertLongToMega(maxMemory);
longmaxMemoryb()
max Memoryb
return runtime.maxMemory();