jdk/src/linux/doc/man/ja/jstack.1
author jjg
Tue, 11 Mar 2008 13:14:55 -0700
changeset 168 25697c18650b
parent 2 90ce3da70b43
child 2692 345bc8d65b19
permissions -rw-r--r--
6307187: clean up code for -Xlint:options Summary: introduce common code for handling one-of and any-of options Reviewed-by: mcimadamore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
'\" t
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
.\" Copyright 2004-2006 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
.\" This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
.\" under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
.\" published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
.\" This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
.\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
.\" version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
.\" accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
.\" You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
.\" 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
.\" Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
.\" CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
.\" have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
.TH jstack 1 "2006 年 9 月 4 日" "Java SE 6" "ユーザーコマンド"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
.SH 名前
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
jstack \- スタックトレース
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
.SH 形式
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
.B jstack
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
.BI [ option ] " pid" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
.br 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
.B jstack
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
.BI [ option ] " executable core" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
.B jstack
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
.BI [ option ] " [server-id@]remote-hostname-or-IP"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
.SH パラメータ
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
オプションは相互に排他的です。オプションを使用する場合は、コマンド名の直後に指定する必要があります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
「オプション」を参照してください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
.I pid
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
スタックトレースを出力するプロセス ID。プロセスは Java プロセスでなければなりません。マシン上で実行している Java プロセスのリストを取得するには、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
.B jps 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
を使用します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
.I executable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
コアダンプが生成された Java 実行可能ファイル。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
.I core
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
スタックトレースを出力するコアファイル。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
.BI remote-hostname-or-IP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
リモートデバッグサーバー (
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
.B jsadebugd 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
を参照) のホスト名または IP アドレス。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
.I server-id
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
同じリモートホスト上で複数のデバッグサーバーが動作している場合の、オプションの一意 ID。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
.SH 機能説明
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
.B jstack 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
は、指定された Java プロセスまたはコアファイルまたはリモートデバッグサーバーの Java スレッドの Java スタックトレースを出力します。それぞれの Java フレームについて、完全なクラス名、メソッド名、'bci' (バイトコードインデックス) 、および行番号 (入手可能な場合) が出力されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
.B \-m 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
オプションを指定した場合、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
.B jstack 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
は、すべてのスレッドの Java とネイティブの両方のフレームを 'pc' (プログラムカウンタ) とともに出力します。それぞれのネイティブフレームについて、'pc' に最も近いネイティブシンボル (入手可能な場合) が出力されます。C++ の符号化された (mangled) 名前は復号化 (demangled) されません。C++ 名を復号化するには、このコマンドの出力を c++filt にパイプで渡します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
指定されたプロセスが 64 ビット VM 上で実行されている場合、\f2\-J\-d64\fP オプションを指定しなければならない場合があります。次に例を示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
jstack \-J\-d64 \-m pid
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
注 - このユーティリティはサポートされていないため、JDK の将来のバージョンでは使用できない可能性があります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
Windows プラットフォーム上で使用可能な唯一の jstack 形式は、次のとおりです。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
\fP\f3    jstack pid \fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
.SH オプション
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
\-F 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
「jstack pid」が応答しない場合にスタックダンプを強制します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
\-m 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
混合モード (Java とネイティブの両方の C/C++ フレーム) のスタックトレースを出力します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
\-h
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
ヘルプメッセージを出力します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
\-help
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
ヘルプメッセージを出力します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
.SH 関連項目
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
pstack(1) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
c++filt(1) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
jps 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
jsadebugd 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
.SH 既知の問題
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
混合モードのスタックトレース (
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
.B \-m 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
オプション) は、リモートデバッグサーバーでは機能しません。