public class MemoryUtils extends Object
MemoryUtils This function is used to manage the memoryu within the JVM| Modifier and Type | Method and Description |
|---|---|
static long |
getAvailableMemory() |
int |
getDefError() |
void |
getSystemInfo() |
static int |
getThreshold() |
static long |
getTotalMemory() |
static long |
getUsedMemory() |
static boolean |
isThreshold() |
static void |
setMemoryStatsWithGC() |
static void |
setThreshold(int aThreshold)
Threshold is a number between 1 - 99 default is 90
|
static Process |
startProcess(String aCmd) |
public void getSystemInfo()
public static long getTotalMemory()
public static long getUsedMemory()
public static long getAvailableMemory()
public static void setThreshold(int aThreshold)
aThreshold - thresholdpublic static int getThreshold()
public static boolean isThreshold()
public static void setMemoryStatsWithGC()
public int getDefError()
Copyright © 2020. All rights reserved.