1 '\" t
   2 .\" Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
   3 .\" Title: jstack
   4 .\" Language: English
   5 .\" Date: 2013年11月21日
   6 .\" SectDesc: トラブルシューティング・ツール
   7 .\" Software: JDK 8
   8 .\" Arch: 汎用
   9 .\"
  10 .\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  11 .\"
  12 .\" This code is free software; you can redistribute it and/or modify it
  13 .\" under the terms of the GNU General Public License version 2 only, as
  14 .\" published by the Free Software Foundation.
  15 .\"
  16 .\" This code is distributed in the hope that it will be useful, but WITHOUT
  17 .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  18 .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  19 .\" version 2 for more details (a copy is included in the LICENSE file that
  20 .\" accompanied this code).
  21 .\"
  22 .\" You should have received a copy of the GNU General Public License version
  23 .\" 2 along with this work; if not, write to the Free Software Foundation,
  24 .\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  25 .\"
  26 .\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  27 .\" or visit www.oracle.com if you need additional information or have any
  28 .\" questions.
  29 .\"
  30 .pl 99999
  31 .TH "jstack" "1" "2013年11月21日" "JDK 8" "トラブルシューティング・ツール"
  32 .\" -----------------------------------------------------------------
  33 .\" * Define some portability stuff
  34 .\" -----------------------------------------------------------------
  35 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  36 .\" http://bugs.debian.org/507673
  37 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  38 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  39 .ie \n(.g .ds Aq \(aq
  40 .el       .ds Aq '
  41 .\" -----------------------------------------------------------------
  42 .\" * set default formatting
  43 .\" -----------------------------------------------------------------
  44 .\" disable hyphenation
  45 .nh
  46 .\" disable justification (adjust text to left margin only)
  47 .ad l
  48 .\" -----------------------------------------------------------------
  49 .\" * MAIN CONTENT STARTS HERE *
  50 .\" -----------------------------------------------------------------
  51 .SH "NAME"
  52 jstack \- Javaプロセス、コア・ファイルまたはリモート・デバッグ・サーバーに対するJavaスレッドのスタック・トレースを出力します。このコマンドは試験的なもので、サポートされていません。
  53 .SH "概要"
  54 .sp
  55 .if n \{\
  56 .RS 4
  57 .\}
  58 .nf
  59 \fIjstack\fR [ \fIoptions\fR ] \fIpid\fR 
  60 .fi
  61 .if n \{\
  62 .RE
  63 .\}
  64 .sp
  65 .if n \{\
  66 .RS 4
  67 .\}
  68 .nf
  69 \fIjstack\fR [ \fIoptions\fR ] \fIexecutable\fR \fIcore\fR
  70 .fi
  71 .if n \{\
  72 .RE
  73 .\}
  74 .sp
  75 .if n \{\
  76 .RS 4
  77 .\}
  78 .nf
  79 \fIjstack\fR [ \fIoptions\fR ] [ \fIserver\-id\fR@ ] \fIremote\-hostname\-or\-IP\fR
  80 .fi
  81 .if n \{\
  82 .RE
  83 .\}
  84 .PP
  85 \fIoptions\fR
  86 .RS 4
  87 コマンドライン・オプション。オプションを参照してください。
  88 .RE
  89 .PP
  90 \fIpid\fR
  91 .RS 4
  92 出力するスタック・トレースのプロセスIDです。プロセスはJavaプロセスである必要があります。マシン上で実行しているJavaプロセスの一覧を取得するには、jps(1)コマンドを使用します。
  93 .RE
  94 .PP
  95 \fI実行可能ファイル\fR
  96 .RS 4
  97 コア・ダンプの作成元のJava実行可能ファイル。
  98 .RE
  99 .PP
 100 \fIコア\fR
 101 .RS 4
 102 出力するスタック・トレースのコア・ファイルです。
 103 .RE
 104 .PP
 105 \fIremote\-hostname\-or\-IP\fR
 106 .RS 4
 107 リモート・デバッグ・サーバーの\fIホスト名\fRまたは\fIIP\fRアドレス。jsadebugd(1)を参照してください。
 108 .RE
 109 .PP
 110 \fIserver\-id\fR
 111 .RS 4
 112 複数のデバッグ・サーバーが同一のリモート・ホストで実行している場合の、オプション固有のID。
 113 .RE
 114 .SH "説明"
 115 .PP
 116 \fIjstack\fRコマンドは、指定されたJavaプロセス、コア・ファイルまたはリモート・デバッグ・サーバーに対するJavaスレッドのJavaスタック・トレースを出力します。Javaフレームごとに、フルクラス名、メソッド名、バイトコード・インデックス(bci)、および行番号(利用可能な場合)が出力されます。\fI\-m\fRオプションを使用すると、\fIjstack\fRコマンドは、すべてのスレッドのJavaフレームとネイティブ・フレームの両方を、プログラム・カウンタ(PC)とともに出力します。ネイティブ・フレームごとに、PCに最も近いネイティブ・シンボル(利用可能な場合)が出力されます。C++分解名は分解解除されません。C++名を分解解除するには、このコマンドの出力を\fIc++filt\fRにパイプします。指定されたプロセスが64ビットJava仮想マシン上で実行されている場合は、\fI\-J\-d64\fRオプションを指定する必要があります(例:
 117 \fIjstack \-J\-d64 \-m pid\fR)。
 118 .PP
 119 \fB注意\fR
 120 このユーティリティはサポート対象外であり、将来のJDKのリリースでは利用できなくなる可能性があります。dbgeng\&.dllファイルが存在していないWindowsシステムでは、Debugging Tools For Windowsをインストールしないとこれらのツールが正常に動作しません。また、\fIPATH\fR環境変数には、ターゲット・プロセスによって使用されるjvm\&.dllの場所、またはクラッシュ・ダンプ・ファイルが生成された場所が含まれるようにしてください。次に例を示します。
 121 .sp
 122 .if n \{\
 123 .RS 4
 124 .\}
 125 .nf
 126 set PATH=<jdk>\ejre\ebin\eclient;%PATH%
 127 .fi
 128 .if n \{\
 129 .RE
 130 .\}
 131 .SH "オプション"
 132 .PP
 133 \-F
 134 .RS 4
 135 \fIjstack\fR
 136 [\fI\-l\fR]
 137 \fIpid\fRが応答しない場合にスタック・ダンプを強制します。
 138 .RE
 139 .PP
 140 \-l
 141 .RS 4
 142 長形式のリスト。所有\fIjava\&.util\&.concurrent\fRの所有できるシンクロナイザの一覧など、ロックについての追加情報を印刷します。http://docs\&.oracle\&.com/javase/8/docs/api/java/util/concurrent/locks/AbstractOwnableSynchronizer\&.htmlにある
 143 \fIAbstractOwnableSynchronizer\fRクラス記述を参照してください
 144 .RE
 145 .PP
 146 \-m
 147 .RS 4
 148 JavaおよびネイティブC/C++フレームの両方を持つ混合モードのスタック・トレースを出力します。
 149 .RE
 150 .PP
 151 \-h
 152 .RS 4
 153 ヘルプ・メッセージが出力されます。
 154 .RE
 155 .PP
 156 \-help
 157 .RS 4
 158 ヘルプ・メッセージが出力されます。
 159 .RE
 160 .SH "既知の不具合"
 161 .PP
 162 混合モードのスタック・トレースでは、\fI\-m\fRオプションはリモート・デバッグ・サーバーでは機能しません。
 163 .SH "関連項目"
 164 .sp
 165 .RS 4
 166 .ie n \{\
 167 \h'-04'\(bu\h'+03'\c
 168 .\}
 169 .el \{\
 170 .sp -1
 171 .IP \(bu 2.3
 172 .\}
 173 pstack(1)
 174 .RE
 175 .sp
 176 .RS 4
 177 .ie n \{\
 178 \h'-04'\(bu\h'+03'\c
 179 .\}
 180 .el \{\
 181 .sp -1
 182 .IP \(bu 2.3
 183 .\}
 184 C++filt(1)
 185 .RE
 186 .sp
 187 .RS 4
 188 .ie n \{\
 189 \h'-04'\(bu\h'+03'\c
 190 .\}
 191 .el \{\
 192 .sp -1
 193 .IP \(bu 2.3
 194 .\}
 195 jps(1)
 196 .RE
 197 .sp
 198 .RS 4
 199 .ie n \{\
 200 \h'-04'\(bu\h'+03'\c
 201 .\}
 202 .el \{\
 203 .sp -1
 204 .IP \(bu 2.3
 205 .\}
 206 jsadebugd(1)
 207 .RE
 208 .br
 209 'pl 8.5i
 210 'bp