Lines Matching refs:pid
29 * Usage: java TestManager <pid> <port>
31 * where <pid> is the process-id of the test application, and <port> is
59 private static void startManagementAgent(String pid) throws IOException {
81 VirtualMachine.attach(pid).loadAgent(agent);
87 private static void connect(String pid, String address) throws Exception {
90 pid + " is null");
93 System.out.println("Connect to process " + pid + " via: " + address);
113 String pid = args[0]; // pid as a string
114 VirtualMachine vm = VirtualMachine.attach(pid);
119 int vmid = Integer.parseInt(pid);
127 startManagementAgent(pid);
137 connect(pid, agentPropLocalConnectorAddress);
141 connect(pid, jvmstatLocalConnectorAddress);