public class JMap extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ARGS
Arguments to pass in to command
|
static String |
CMD
The command to run
|
| Modifier | Constructor and Description |
|---|---|
protected |
JMap()
Do not construct
|
| Modifier and Type | Method and Description |
|---|---|
static int |
getProcessId()
Get the process ID of the current running process
|
static void |
heapHistogramDump(int numLines)
Run jmap, print numLines of output from it to stderr.
|
static void |
heapHistogramDump(int numLines,
PrintStream printStream)
Run jmap, print numLines of output from it to stream passed in.
|
public static final String CMD
public static final String ARGS
public static int getProcessId()
public static void heapHistogramDump(int numLines)
numLines - Number of lines to printpublic static void heapHistogramDump(int numLines,
PrintStream printStream)
numLines - Number of lines to printprintStream - Stream to print toCopyright © 2015. All Rights Reserved.