jdk

Форк
0
/
jstack.1 
89 строк · 3.2 Кб
1
.\" Copyright (c) 2004, 2018, 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
.\" Automatically generated by Pandoc 2.19.2
23
.\"
24
.\" Define V font for inline verbatim, using C font in formats
25
.\" that render this, and otherwise B font.
26
.ie "\f[CB]x\f[R]"x" \{\
27
. ftr V B
28
. ftr VI BI
29
. ftr VB B
30
. ftr VBI BI
31
.\}
32
.el \{\
33
. ftr V CR
34
. ftr VI CI
35
. ftr VB CB
36
. ftr VBI CBI
37
.\}
38
.TH "JSTACK" "1" "2025" "JDK 24-ea" "JDK Commands"
39
.hy
40
.SH NAME
41
.PP
42
jstack - print Java stack traces of Java threads for a specified Java
43
process
44
.SH SYNOPSIS
45
.PP
46
\f[B]Note:\f[R] This command is experimental and unsupported.
47
.PP
48
\f[V]jstack\f[R] [\f[I]options\f[R]] \f[I]pid\f[R]
49
.TP
50
\f[I]options\f[R]
51
This represents the \f[V]jstack\f[R] command-line options.
52
See \f[B]Options for the jstack Command\f[R].
53
.TP
54
\f[I]pid\f[R]
55
The process ID for which the stack trace is printed.
56
The process must be a Java process.
57
To get a list of Java processes running on a machine, use either the
58
\f[V]ps\f[R] command or, if the JVM processes are not running in a
59
separate docker instance, the \f[B]jps\f[R] command.
60
.SH DESCRIPTION
61
.PP
62
The \f[V]jstack\f[R] command prints Java stack traces of Java threads
63
for a specified Java process.
64
For each Java frame, the full class name, method name, byte code index
65
(BCI), and line number, when available, are printed.
66
C++ mangled names aren\[aq]t demangled.
67
To demangle C++ names, the output of this command can be piped to
68
\f[V]c++filt\f[R].
69
When the specified process is running on a 64-bit JVM, you might need to
70
specify the \f[V]-J-d64\f[R] option, for example:
71
\f[V]jstack -J-d64\f[R] \f[I]pid\f[R].
72
.PP
73
\f[B]Note:\f[R]
74
.PP
75
This command is unsupported and might not be available in future
76
releases of the JDK.
77
In Windows Systems where the \f[V]dbgeng.dll\f[R] file isn\[aq]t
78
present, the Debugging Tools for Windows must be installed so that these
79
tools work.
80
The \f[V]PATH\f[R] environment variable needs to contain the location of
81
the \f[V]jvm.dll\f[R] that is used by the target process, or the
82
location from which the core dump file was produced.
83
.SH OPTIONS FOR THE JSTACK COMMAND
84
.TP
85
\f[V]-l\f[R]
86
The long listing option prints additional information about locks.
87
.TP
88
\f[V]-h\f[R] or \f[V]-help\f[R]
89
Prints a help message.
90

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.