blob: 8a94b110eb4a6277a09ecaf0813efbece441dc48 [file] [log] [blame]
bpatel87d64cc2010-07-14 15:42:06 -07001." Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
duke6e45e102007-12-01 00:00:00 +00002." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3."
4." This code is free software; you can redistribute it and/or modify it
5." under the terms of the GNU General Public License version 2 only, as
6." published by the Free Software Foundation.
7."
8." This code is distributed in the hope that it will be useful, but WITHOUT
9." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11." version 2 for more details (a copy is included in the LICENSE file that
12." accompanied this code).
13."
14." You should have received a copy of the GNU General Public License version
15." 2 along with this work; if not, write to the Free Software Foundation,
16." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17."
ohair2283b9d2010-05-25 15:58:33 -070018." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19." or visit www.oracle.com if you need additional information or have any
20." questions.
duke6e45e102007-12-01 00:00:00 +000021."
bpatel87d64cc2010-07-14 15:42:06 -070022.TH jsadebugd 1 "02 Jun 2010"
duke6e45e102007-12-01 00:00:00 +000023
24.LP
tbell16c34dd2009-05-04 18:28:26 -070025.SH "Name"
duke6e45e102007-12-01 00:00:00 +000026jsadebugd \- Serviceability Agent Debug Daemon
27.LP
28.SH "SYNOPSIS"
29.LP
30
31.LP
32.nf
33\f3
34.fl
35\fP\f3jsadebugd\fP pid [ server\-id ]
36.fl
37\f3jsadebugd\fP executable core [ server\-id ]
38.fl
39.fi
40
41.LP
42.SH "PARAMETERS"
43.LP
44
45.LP
tbell16c34dd2009-05-04 18:28:26 -070046.RS 3
duke6e45e102007-12-01 00:00:00 +000047.TP 3
48pid
tbell16c34dd2009-05-04 18:28:26 -070049process id of the process to which the debug server should attach. The process must be a Java process. To get a list of Java processes running on a machine, jps(1) may be used. At most one instance of the debug server may be attached to a single process.
50.RE
51
duke6e45e102007-12-01 00:00:00 +000052.LP
tbell16c34dd2009-05-04 18:28:26 -070053.RS 3
duke6e45e102007-12-01 00:00:00 +000054.TP 3
55executable
tbell16c34dd2009-05-04 18:28:26 -070056.RE
57
duke6e45e102007-12-01 00:00:00 +000058.LP
tbell16c34dd2009-05-04 18:28:26 -070059.RS 3
duke6e45e102007-12-01 00:00:00 +000060.TP 3
61Java executable from which the core dump was produced
tbell16c34dd2009-05-04 18:28:26 -070062.RE
63
duke6e45e102007-12-01 00:00:00 +000064.LP
tbell16c34dd2009-05-04 18:28:26 -070065.RS 3
duke6e45e102007-12-01 00:00:00 +000066.TP 3
67core
68Core file to which the debug server should attach.
tbell16c34dd2009-05-04 18:28:26 -070069.RE
70
duke6e45e102007-12-01 00:00:00 +000071.LP
tbell16c34dd2009-05-04 18:28:26 -070072.RS 3
duke6e45e102007-12-01 00:00:00 +000073.TP 3
74server\-id
75Optional unique id, needed if multiple debug servers are started on the same machine. This ID must be used by remote clients to identify the particular debug server to attach. Within a single machine, this ID must be unique.
tbell16c34dd2009-05-04 18:28:26 -070076.RE
77
duke6e45e102007-12-01 00:00:00 +000078.LP
79.SH "DESCRIPTION"
80.LP
81
82.LP
83.LP
tbell16c34dd2009-05-04 18:28:26 -070084\f3jsadebugd\fP attaches to a Java process or core file and acts as a debug server. Remote clients such as jstack(1), jmap(1), and jinfo(1) can attach to the server using Java Remote Method Invocation (RMI). Before starting \f2jsadebugd\fP,
85.na
86\f2rmiregistry\fP @
87.fi
88http://java.sun.com/javase/6/docs/technotes/tools/index.html#rmi must be started with:
duke6e45e102007-12-01 00:00:00 +000089.LP
90.RS 3
91
92.LP
93.nf
94\f3
95.fl
96\fP\f4rmiregistry \-J\-Xbootclasspath/p:$JAVA_HOME/lib/sajdi.jar\fP\f3
97.fl
98\fP
99.fi
100.RE
101
102.LP
103.LP
104where \f2$JAVA_HOME\fP is the JDK installation directory. If rmiregistry was not started, jsadebugd will start an rmiregistry in a standard (1099) port internally. Debug server may be stopped by sending SIGINT (pressing Ctrl\-C) to it.
105.LP
106.LP
tbell16c34dd2009-05-04 18:28:26 -0700107\f3NOTE \- This utility is unsupported and may or may not be available in future versions of the JDK. In Windows Systems where dbgeng.dll is not present, 'Debugging Tools For Windows' needs to be installed to have these tools working. Also, \fP\f4PATH\fP\f3 environment variable should contain the location of \fP\f4jvm.dll\fP\f3 used by the target process or the location from which the Crash Dump file was produced.\fP
108.LP
109.LP
110\f3For example, \fP\f4set PATH=<jdk>\\jre\\bin\\client;%PATH%\fP
duke6e45e102007-12-01 00:00:00 +0000111.LP
112.SH "SEE ALSO"
113.LP
114.RS 3
115.TP 2
tbell16c34dd2009-05-04 18:28:26 -0700116o
117jinfo(1)
duke6e45e102007-12-01 00:00:00 +0000118.TP 2
tbell16c34dd2009-05-04 18:28:26 -0700119o
120jmap(1)
duke6e45e102007-12-01 00:00:00 +0000121.TP 2
tbell16c34dd2009-05-04 18:28:26 -0700122o
123jps(1)
duke6e45e102007-12-01 00:00:00 +0000124.TP 2
tbell16c34dd2009-05-04 18:28:26 -0700125o
126jstack(1)
duke6e45e102007-12-01 00:00:00 +0000127.TP 2
tbell16c34dd2009-05-04 18:28:26 -0700128o
129.na
130\f2rmiregistry\fP @
131.fi
132http://java.sun.com/javase/6/docs/technotes/tools/index.html#rmi
duke6e45e102007-12-01 00:00:00 +0000133.RE
134
135.LP
duke6e45e102007-12-01 00:00:00 +0000136