jsadebugd (original) (raw)
Description
The jsadebugd
command attaches to a Java process or core file and acts as a debug server. Remote clients such as jstack
, jmap
, and jinfo
can attach to the server through Java Remote Method Invocation (RMI). Before you start the jsadebugd
command, start the RMI registry with the rmiregistry
command as follows where $JAVA_HOME is the JDK installation directory:
rmiregistry -J-Xbootclasspath/p:$JAVA_HOME/lib/sajdi.jar
If the RMI registry was not started, then the jsadebugd
command starts an RMI registry in a standard (1099) port internally. The debug server can be stopped by sending a SIGINT
to it. To send a SIGINT press Ctrl+C.
Note: This utility is unsupported and may or may not be available in future releases of the JDK. In Windows Systems where dbgeng.dll
is not present, Debugging Tools For Windows must be installed to have these tools working. The PATH
environment variable should contain the location of jvm.dll used by the target process or the location from which the crash dump file was produced. For example, s
et PATH=%JDK_HOME%\jre\bin\client;%PATH%
.