4176N/A." Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
0N/A." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A."
0N/A." This code is free software; you can redistribute it and/or modify it
0N/A." under the terms of the GNU General Public License version 2 only, as
0N/A." published by the Free Software Foundation.
0N/A."
0N/A." This code is distributed in the hope that it will be useful, but WITHOUT
0N/A." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A." FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A." version 2 for more details (a copy is included in the LICENSE file that
0N/A." accompanied this code).
0N/A."
0N/A." You should have received a copy of the GNU General Public License version
0N/A." 2 along with this work; if not, write to the Free Software Foundation,
0N/A." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A."
2362N/A." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A." or visit www.oracle.com if you need additional information or have any
2362N/A." questions.
0N/A."
4880N/A.TH jsadebugd 1 "16 Mar 2012"
0N/A
0N/A.LP
1178N/A.SH "Name"
0N/Ajsadebugd \- Serviceability Agent Debug Daemon
0N/A.LP
0N/A.SH "SYNOPSIS"
0N/A.LP
0N/A.nf
0N/A\f3
0N/A.fl
0N/A\fP\f3jsadebugd\fP pid [ server\-id ]
0N/A.fl
0N/A\f3jsadebugd\fP executable core [ server\-id ]
0N/A.fl
0N/A.fi
0N/A
0N/A.LP
0N/A.SH "PARAMETERS"
0N/A.LP
1178N/A.RS 3
0N/A.TP 3
0N/Apid
1178N/Aprocess 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.
0N/A.TP 3
0N/Aexecutable
0N/AJava executable from which the core dump was produced
0N/A.TP 3
0N/Acore
0N/ACore file to which the debug server should attach.
0N/A.TP 3
0N/Aserver\-id
0N/AOptional 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.
1178N/A.RE
1178N/A
0N/A.LP
0N/A.SH "DESCRIPTION"
0N/A.LP
0N/A.LP
1178N/A\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,
1178N/A.na
1178N/A\f2rmiregistry\fP @
1178N/A.fi
4880N/Ahttp://docs.oracle.com/javase/7/docs/technotes/tools/index.html#rmi must be started with:
0N/A.LP
0N/A.nf
0N/A\f3
0N/A.fl
0N/A\fP\f4rmiregistry \-J\-Xbootclasspath/p:$JAVA_HOME/lib/sajdi.jar\fP\f3
0N/A.fl
0N/A\fP
0N/A.fi
0N/A
0N/A.LP
0N/A.LP
0N/Awhere \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.
0N/A.LP
0N/A.LP
4176N/A\f3NOTE\fP \- 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, \f2PATH\fP environment variable should contain the location of \f2jvm.dll\fP used by the target process or the location from which the Crash Dump file was produced.
1178N/A.LP
1178N/A.LP
4176N/AFor example, \f2set PATH=<jdk>\\jre\\bin\\client;%PATH%\fP
0N/A.LP
0N/A.SH "SEE ALSO"
0N/A.LP
0N/A.RS 3
0N/A.TP 2
1178N/Ao
1178N/Ajinfo(1)
0N/A.TP 2
1178N/Ao
1178N/Ajmap(1)
1178N/A.TP 2
1178N/Ao
1178N/Ajps(1)
0N/A.TP 2
1178N/Ao
1178N/Ajstack(1)
0N/A.TP 2
1178N/Ao
1178N/A.na
1178N/A\f2rmiregistry\fP @
1178N/A.fi
4880N/Ahttp://docs.oracle.com/javase/7/docs/technotes/tools/index.html#rmi
0N/A.RE
0N/A
0N/A.LP
0N/A