public InputStream printFlag(String name) throws IOException { return executeCommand("printflag", name); }
public InputStream heapHisto(Object... args) throws IOException { return executeCommand("inspectheap", args); }
public InputStream remoteDataDump(Object... args) throws IOException { return executeCommand("threaddump", args); }
public InputStream dumpHeap(Object... args) throws IOException { return executeCommand("dumpheap", args); }
public InputStream setFlag(String name, String value) throws IOException { return executeCommand("setflag", name, value); }
public InputStream remoteDataDump(Object ... args) throws IOException { return executeCommand("threaddump", args); }
public InputStream heapHisto(Object ... args) throws IOException { return executeCommand("inspectheap", args); }
public InputStream executeJCmd(String command) throws IOException { return executeCommand("jcmd", command); }
public InputStream dumpHeap(Object ... args) throws IOException { return executeCommand("dumpheap", args); }
public InputStream setFlag(String name, String value) throws IOException { return executeCommand("setflag", name, value); }
public InputStream printFlag(String name) throws IOException { return executeCommand("printflag", name); }
public void localDataDump() throws IOException { executeCommand("datadump").close(); }
public void localDataDump() throws IOException { executeCommand("datadump").close(); }
@Override public Properties getSystemProperties() throws IOException { InputStream in = null; Properties props = new Properties(); try { in = executeCommand("properties"); props.load(in); } finally { if (in != null) in.close(); } return props; }
@Override public Properties getAgentProperties() throws IOException { InputStream in = null; Properties props = new Properties(); try { in = executeCommand("agentProperties"); props.load(in); } finally { if (in != null) in.close(); } return props; }
@Override public Properties getAgentProperties() throws IOException { InputStream in = null; Properties props = new Properties(); try { in = executeCommand("agentProperties"); props.load(in); } finally { if (in != null) { in.close(); } } return props; }
/** * Send "properties" command to target VM. */ @Override public Properties getSystemProperties() throws IOException { InputStream in = null; Properties props = new Properties(); try { in = executeCommand("properties"); props.load(in); } finally { if (in != null) { in.close(); } } return props; }