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