public class JMap extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ARGS
Arguments to pass in to command
|
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,
boolean liveObjectsOnly,
String jmapPath)
Run jmap, print numLines of output from it to stderr.
|
static void |
heapHistogramDump(int numLines,
PrintStream printStream,
String jmapPath)
Run jmap, print numLines of output from it to stream passed in.
|
static void |
heapHistogramDump(int numLines,
String jmapPath)
Run jmap, print numLines of output from it to stderr.
|
public static final String ARGS
public static int getProcessId()
public static void heapHistogramDump(int numLines, boolean liveObjectsOnly, String jmapPath)
numLines
- Number of lines to printliveObjectsOnly
- Should we only print non GC-able objects?jmapPath
- Path to jmap binarypublic static void heapHistogramDump(int numLines, String jmapPath)
numLines
- Number of lines to printjmapPath
- Path to jmap binarypublic static void heapHistogramDump(int numLines, PrintStream printStream, String jmapPath)
numLines
- Number of lines to printprintStream
- Stream to print tojmapPath
- Path to jmap binaryCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.