public class MemoryUsageUtils extends Object
Constructor and Description |
---|
MemoryUsageUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
gc() |
static void |
generateHeapDump(String dumpName) |
static void |
generateHeapDump(String dumpName,
boolean gc) |
static void |
generateHeapDump(String dumpName,
long pid,
boolean gc) |
static Path |
getDirectory() |
static long |
getProcessUsedRAMInKb(boolean gc) |
static long |
getProcessUsedRAMInKb(long pid,
boolean gc) |
static void |
printHeapLiveBytesResults(List<String> heapDumps) |
static void |
validateDir(String dir) |
public static void validateDir(String dir) throws IOException
IOException
public static Path getDirectory()
public static long getProcessUsedRAMInKb(boolean gc) throws Exception
Exception
public static long getProcessUsedRAMInKb(long pid, boolean gc) throws Exception
Exception
public static void generateHeapDump(String dumpName) throws IOException
IOException
public static void generateHeapDump(String dumpName, boolean gc) throws IOException
IOException
public static void generateHeapDump(String dumpName, long pid, boolean gc) throws IOException
IOException
public static void gc()
Copyright © GigaSpaces.