jsadebugd.1 revision 6073:cea72c2bf071
1." Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved. 2." 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." 18." 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. 21." 22.TH jsadebugd 1 "10 May 2011" 23 24.LP 25.SH "Name" 26jsadebugd \- Serviceability Agent Debug Daemon 27.LP 28.SH "SYNOPSIS" 29.LP 30.nf 31\f3 32.fl 33\fP\f3jsadebugd\fP pid [ server\-id ] 34.fl 35\f3jsadebugd\fP executable core [ server\-id ] 36.fl 37.fi 38 39.LP 40.SH "PARAMETERS" 41.LP 42.RS 3 43.TP 3 44pid 45process 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. 46.TP 3 47executable 48Java executable from which the core dump was produced 49.TP 3 50core 51Core file to which the debug server should attach. 52.TP 3 53server\-id 54Optional 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. 55.RE 56 57.LP 58.SH "DESCRIPTION" 59.LP 60.LP 61\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, 62.na 63\f2rmiregistry\fP @ 64.fi 65http://download.oracle.com/javase/7/docs/technotes/tools/index.html#rmi must be started with: 66.LP 67.nf 68\f3 69.fl 70\fP\f4rmiregistry \-J\-Xbootclasspath/p:$JAVA_HOME/lib/sajdi.jar\fP\f3 71.fl 72\fP 73.fi 74 75.LP 76.LP 77where \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. 78.LP 79.LP 80\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. 81.LP 82.LP 83For example, \f2set PATH=<jdk>\\jre\\bin\\client;%PATH%\fP 84.LP 85.SH "SEE ALSO" 86.LP 87.RS 3 88.TP 2 89o 90jinfo(1) 91.TP 2 92o 93jmap(1) 94.TP 2 95o 96jps(1) 97.TP 2 98o 99jstack(1) 100.TP 2 101o 102.na 103\f2rmiregistry\fP @ 104.fi 105http://download.oracle.com/javase/7/docs/technotes/tools/index.html#rmi 106.RE 107 108.LP 109 110