tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 1 | ." Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
| 19 | ." CA 95054 USA or visit www.sun.com if you need additional information or |
| 20 | ." have any questions. |
| 21 | ." |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 22 | .TH jsadebugd 1 "04 May 2009" |
| 23 | ." Generated from HTML by html2man (author: Eric Armstrong) |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 24 | |
| 25 | .LP |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 26 | .SH "Name" |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 27 | jsadebugd \- Serviceability Agent Debug Daemon |
| 28 | .LP |
| 29 | .SH "SYNOPSIS" |
| 30 | .LP |
| 31 | |
| 32 | .LP |
| 33 | .nf |
| 34 | \f3 |
| 35 | .fl |
| 36 | \fP\f3jsadebugd\fP pid [ server\-id ] |
| 37 | .fl |
| 38 | \f3jsadebugd\fP executable core [ server\-id ] |
| 39 | .fl |
| 40 | .fi |
| 41 | |
| 42 | .LP |
| 43 | .SH "PARAMETERS" |
| 44 | .LP |
| 45 | |
| 46 | .LP |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 47 | .RS 3 |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 48 | .TP 3 |
| 49 | pid |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 50 | process 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. |
| 51 | .RE |
| 52 | |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 53 | .LP |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 54 | .RS 3 |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 55 | .TP 3 |
| 56 | executable |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 57 | .RE |
| 58 | |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 59 | .LP |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 60 | .RS 3 |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 61 | .TP 3 |
| 62 | Java executable from which the core dump was produced |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 63 | .RE |
| 64 | |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 65 | .LP |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 66 | .RS 3 |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 67 | .TP 3 |
| 68 | core |
| 69 | Core file to which the debug server should attach. |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 70 | .RE |
| 71 | |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 72 | .LP |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 73 | .RS 3 |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 74 | .TP 3 |
| 75 | server\-id |
| 76 | Optional 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. |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 77 | .RE |
| 78 | |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 79 | .LP |
| 80 | .SH "DESCRIPTION" |
| 81 | .LP |
| 82 | |
| 83 | .LP |
| 84 | .LP |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 85 | \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, |
| 86 | .na |
| 87 | \f2rmiregistry\fP @ |
| 88 | .fi |
| 89 | http://java.sun.com/javase/6/docs/technotes/tools/index.html#rmi must be started with: |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 90 | .LP |
| 91 | .RS 3 |
| 92 | |
| 93 | .LP |
| 94 | .nf |
| 95 | \f3 |
| 96 | .fl |
| 97 | \fP\f4rmiregistry \-J\-Xbootclasspath/p:$JAVA_HOME/lib/sajdi.jar\fP\f3 |
| 98 | .fl |
| 99 | \fP |
| 100 | .fi |
| 101 | .RE |
| 102 | |
| 103 | .LP |
| 104 | .LP |
| 105 | where \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. |
| 106 | .LP |
| 107 | .LP |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 108 | \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 |
| 109 | .LP |
| 110 | .LP |
| 111 | \f3For example, \fP\f4set PATH=<jdk>\\jre\\bin\\client;%PATH%\fP |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 112 | .LP |
| 113 | .SH "SEE ALSO" |
| 114 | .LP |
| 115 | .RS 3 |
| 116 | .TP 2 |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 117 | o |
| 118 | jinfo(1) |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 119 | .TP 2 |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 120 | o |
| 121 | jmap(1) |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 122 | .TP 2 |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 123 | o |
| 124 | jps(1) |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 125 | .TP 2 |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 126 | o |
| 127 | jstack(1) |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 128 | .TP 2 |
tbell | 16c34dd | 2009-05-04 18:28:26 -0700 | [diff] [blame^] | 129 | o |
| 130 | .na |
| 131 | \f2rmiregistry\fP @ |
| 132 | .fi |
| 133 | http://java.sun.com/javase/6/docs/technotes/tools/index.html#rmi |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 134 | .RE |
| 135 | |
| 136 | .LP |
| 137 | |
| 138 | .LP |
| 139 | |