ml.shifu.guagua.util
类 JMap

java.lang.Object
  继承者 ml.shifu.guagua.util.JMap

public class JMap
extends Object

Helper to run jmap and print the output. Copy from Apache Giraph.


字段摘要
static String ARGS
          Arguments to pass in to command
static String CMD
          The command to run
 
构造方法摘要
protected JMap()
          Do not construct
 
方法摘要
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.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

CMD

public static final String CMD
The command to run

另请参见:
常量字段值

ARGS

public static final String ARGS
Arguments to pass in to command

另请参见:
常量字段值
构造方法详细信息

JMap

protected JMap()
Do not construct

方法详细信息

getProcessId

public static int getProcessId()
Get the process ID of the current running process

返回:
Integer process ID

heapHistogramDump

public static void heapHistogramDump(int numLines)
Run jmap, print numLines of output from it to stderr.

参数:
numLines - Number of lines to print

heapHistogramDump

public static void heapHistogramDump(int numLines,
                                     PrintStream printStream)
Run jmap, print numLines of output from it to stream passed in.

参数:
numLines - Number of lines to print
printStream - Stream to print to


Copyright © 2014. All Rights Reserved.