|
NAMEjhsdb - attach to a Java process or launch a postmortem debugger to analyze the content of a core dump from a crashed Java Virtual Machine (JVM)SYNOPSISjhsdb clhsdb [--pid pid | --exe executable --core coredump]jhsdb debugd [options] (pid | executable coredump) [server-id] jhsdb hsdb [--pid pid | --exe executable --core coredump] jhsdb jstack [--pid pid | --exe executable --core coredump] [options] jhsdb jmap [--pid pid | --exe executable --core coredump] [options] jhsdb jinfo [--pid pid | --exe executable --core coredump] [options] jhsdb jsnap [options] [--pid pid | --exe executable --core coredump]
Note: JDK 10 has added support for using the Attach API when attaching to Java processes running in a separate docker process. However, the jps command will not list the JVM processes that are running in a separate docker instance. If you are trying to connect a Linux host with a Virtual Machine that is in a docker container, you must use tools such as ps to look up the PID of the JVM.
Note: Either the pid or the pair of executable and core files must be provided. DESCRIPTIONYou can use the jhsdb tool to attach to a Java process or to launch a postmortem debugger to analyze the content of a core-dump from a crashed Java Virtual Machine (JVM). This command is experimental and unsupported.Note: Attaching the jhsdb tool to a live process will cause the process to hang and the process will probably crash when the debugger detaches. The jhsdb tool can be launched in any one of the following modes:
COMMON OPTIONS FOR JHSDB MODESIn addition to any required jstack, jmap, jinfo or jsnap mode specific options, the pid, exe, or core options must be provided for all modes. The following options are available for all modes.
OPTIONS FOR THE DEBUGD MODE
OPTIONS FOR THE JINFO MODEWithout specified options, the jhsdb jinfo prints both flags and properties.
OPTIONS FOR THE JMAP MODEIn addition to the following mode specific options, the pid, exe, or core options described in Common Options for jhsdb Modes must be provided.
OPTIONS FOR THE JSTACK MODEIn addition to the following mode specific options, the pid, exe, or core options described in Common Options for jhsdb Modes must be provided.
OPTIONS FOR THE JSNAP MODEIn addition to the following mode specific option, the pid, exe, or core options described in Common Options for jhsdb Modes must be provided.
Visit the GSP FreeBSD Man Page Interface. |