Searched defs:pid (Results 1 - 25 of 66) sorted by relevance

123

/openjdk7/hotspot/test/runtime/NMT/
H A DJcmdWithNMTDisabled.java39 static String pid; field in class:JcmdWithNMTDisabled
43 pid = Integer.toString(ProcessTools.getProcessId());
57 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", command});
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/
H A DProcessInfo.java31 public ProcessInfo(String name, int pid) { argument
33 this.pid = pid;
41 return pid;
45 private int pid; field in class:ProcessInfo
/openjdk7/jdk/test/sun/management/jmxremote/bootstrap/
H A DTestManager.java29 * 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 { argument
81 VirtualMachine.attach(pid).loadAgent(agent);
87 private static void connect(String pid, String address) throws Exception { argument
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);
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/jdi/
H A DSAPIDAttachingConnector.java38 static final String ARG_PID = "pid";
50 "PID", //getString("sa.pid.label"),
51 "PID of a Java process", //getString("sa.pid.description");
62 private void checkProcessAttach(int pid) { argument
70 // Whether the caller can read /proc/<pid> file?
71 sm.checkRead("/proc/" + pid);
74 throw new SecurityException("permission denied to attach to " + pid);
79 private VirtualMachine createVirtualMachine(Class virtualMachineImplClass, int pid) argument
90 new Integer(pid),
97 int pid
[all...]
/openjdk7/hotspot/agent/test/jdi/
H A Dmultivm.java115 private static VirtualMachine attachPID(int pid) { argument
119 Connector.StringArgument connArg = (Connector.StringArgument)connArgs.get("pid");
120 connArg.setValue(Integer.toString(pid));
H A Dserialvm.java119 private static VirtualMachine attachPID(int pid) { argument
123 Connector.StringArgument connArg = (Connector.StringArgument)connArgs.get("pid");
124 connArg.setValue(Integer.toString(pid));
H A Dsagclient.java70 int pid = 0;
79 pid = Integer.parseInt(pidText);
80 System.out.println( "pid: " + pid);
81 vm = attachPID(pid);
129 private static VirtualMachine attachPID(int pid) { argument
133 Connector.StringArgument connArg = (Connector.StringArgument)connArgs.get("pid");
134 connArg.setValue(Integer.toString(pid));
/openjdk7/jdk/src/share/classes/sun/tools/jstack/
H A DJStack.java89 // If we can't parse it as a pid then it must be debug server
97 // parameters (<pid> or <exe> <core>
105 String pid = args[optionCount];
112 runThreadDump(pid, params);
155 // Attach to pid and perform a thread dump
156 private static void runThreadDump(String pid, String args[]) throws Exception { argument
159 vm = VirtualMachine.attach(pid);
163 System.err.println(pid + ": " + msg);
204 System.out.println(" jstack [-l] <pid>");
208 System.out.println(" jstack -F [-m] [-l] <pid>");
[all...]
/openjdk7/jdk/src/solaris/back/
H A Dexec_md.c61 pid_t pid; local
103 if ((pid = FORK()) == 0) {
121 if (pid == pid_err) {
/openjdk7/jdk/src/share/classes/sun/tools/jcmd/
H A DArguments.java36 private int pid = -1; field in class:Arguments
43 public int getPid() { return pid; }
59 pid = Integer.parseInt(args[0]);
113 System.out.println("Usage: jcmd <pid | main class> <command ...|PerfCounter.print|-f file>");
119 System.out.println(" If the pid is 0, commands will be sent to all Java processes. ");
H A DJCmd.java116 System.err.println("Invalid pid specified");
119 // Use the found pid
123 for (String pid : pids) {
124 System.out.println(pid + ":");
126 listCounters(pid);
129 executeCommandForPid(pid, arg.getCommand());
137 private static void executeCommandForPid(String pid, String command) argument
140 VirtualMachine vm = VirtualMachine.attach(pid);
166 private static void listCounters(String pid) { argument
170 vmId = new VmIdentifier(pid);
[all...]
/openjdk7/jdk/src/share/classes/sun/tools/jinfo/
H A DJInfo.java55 // SA JInfo needs <pid> or <server> or
74 String pid = args[2];
76 flag(pid, option);
115 private static void flag(String pid, String option) throws IOException { argument
116 VirtualMachine vm = attach(pid);
145 // Attach to <pid>, exiting if we fail to attach
146 private static VirtualMachine attach(String pid) { argument
148 return VirtualMachine.attach(pid);
152 System.err.println(pid + ": " + msg);
186 System.out.println(" jinfo [option] <pid>");
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/
H A DCLHSDB.java66 public void attach(String pid) {
67 attachDebugger(pid);
102 private int pid; field in class:CLHSDB
107 System.out.println("Usage: java CLHSDB [[pid] | [path-to-java-executable [path-to-corefile]] | help ]");
108 System.out.println(" pid: attach to the process whose id is 'pid'");
155 pid = Integer.parseInt(pidText);
162 System.err.println("Attaching to process " + pid + ", please wait...");
166 agent.attach(pid);
171 System.err.println("Unable to connect to process ID " + pid
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/
H A DProcessListPanel.java108 int pid = getPid(els, i);
110 i = findPid(els, pid);
157 int pid = getPid(els, i);
158 i = findPid(newEls, pid);
223 private synchronized int findPid(java.util.List els, int pid) { argument
226 if (info.getPid() == pid) {
/openjdk7/jdk/src/share/classes/java/util/
H A DXMLUtils.java181 public InputSource resolveEntity(String pid, String sid) argument
/openjdk7/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/
H A DLauncher.c71 pid_t pid; local
113 pid = fork1();
115 pid = fork();
117 if (pid != 0) {
118 if (pid < 0) {
/openjdk7/jdk/src/share/demo/jvmti/hprof/
H A Dhprof_error.c119 int pid = md_getpid(); local
124 error_message("\nHPROF pause for PID %d\n", (int)pid);
/openjdk7/jdk/src/share/classes/java/util/prefs/
H A DXmlSupport.java397 public InputSource resolveEntity(String pid, String sid) argument
/openjdk7/jdk/src/share/back/
H A Derror_messages.c319 PID_T pid = GETPID(); local
326 (int)(intptr_t)pid, (int)(intptr_t)tid, (int)(intptr_t)tid);
/openjdk7/jdk/src/solaris/native/sun/tools/attach/
H A DBsdVirtualMachine.c117 (JNIEnv *env, jclass cls, jint pid)
119 if (kill((pid_t)pid, SIGQUIT)) {
116 Java_sun_tools_attach_BsdVirtualMachine_sendQuitTo(JNIEnv *env, jclass cls, jint pid) argument
/openjdk7/jdk/src/windows/classes/sun/tools/attach/
H A DWindowsVirtualMachine.java50 int pid;
52 pid = Integer.parseInt(id);
56 hProcess = openProcess(pid);
169 static native long openProcess(int pid) throws IOException; argument
/openjdk7/jdk/src/share/classes/sun/tools/jmap/
H A DJMap.java123 // parameters (<pid> or <exe> <core>)
131 String pid = args[1];
136 histo(pid, false);
138 histo(pid, true);
140 dump(pid, option);
217 private static void histo(String pid, boolean live) throws IOException { argument
218 VirtualMachine vm = attach(pid);
224 private static void dump(String pid, String options) throws IOException { argument
240 VirtualMachine vm = attach(pid);
293 // Attach to <pid>, existin
294 attach(String pid) argument
[all...]
/openjdk7/jdk/src/solaris/classes/sun/tools/attach/
H A DBsdVirtualMachine.java41 // .java_pid<pid>. and .attach_pid<pid>. It is important that this
61 int pid;
63 pid = Integer.parseInt(vmid);
71 path = findSocketFile(pid);
73 File f = new File(tmpdir, ".attach_pid" + pid);
76 sendQuitTo(pid);
86 path = findSocketFile(pid);
252 // Checks temp directory for .java_pid<pid>.
253 private String findSocketFile(int pid) { argument
281 sendQuitTo(int pid) argument
[all...]
H A DLinuxVirtualMachine.java41 // .java_pid<pid>. and .attach_pid<pid>. It is important that this
62 int pid;
64 pid = Integer.parseInt(vmid);
72 path = findSocketFile(pid);
74 File f = createAttachFile(pid);
77 // pid of the VMThread which has SIGQUIT unblocked. To workaround
78 // this we get the pid of the "manager thread" that is created
84 mpid = getLinuxThreadsManager(pid);
91 sendQuitTo(pid);
268 findSocketFile(int pid) argument
280 createAttachFile(int pid) argument
317 getLinuxThreadsManager(int pid) argument
319 sendQuitToChildrenOf(int pid) argument
321 sendQuitTo(int pid) argument
[all...]
H A DSolarisVirtualMachine.java42 // .java_pid<pid>. and .attach_pid<pid>. It is important that this
59 int pid;
61 pid = Integer.parseInt(vmid);
70 fd = openDoor(pid);
72 File f = createAttachFile(pid);
76 sigquit(pid);
87 fd = openDoor(pid);
195 // The door is attached to .java_pid<pid> in the temporary directory.
196 private int openDoor(int pid) throw argument
215 createAttachFile(int pid) argument
238 sigquit(int pid) argument
[all...]

Completed in 57 milliseconds

123