jdk/src/linux/doc/man/ja/jmap.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 jmap 1 "2006 年 9 月 4 日" "Java SE 6" "ユーザーコマンド"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
.SH 名前
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
jmap \- メモリマップ
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 jmap 
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 jmap
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 jmap
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
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
.BI option
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
オプションは相互に排他的です。オプションを使用する場合は、コマンド名の直後に指定する必要があります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
.I pid
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
メモリマップを表示するプロセス ID。プロセスは Java プロセスでなければなりません。マシン上で実行している Java プロセスのリストを取得するには、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
.B jps 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
を使用します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
.I executable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
コアダンプが生成された Java 実行可能ファイル。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
.I core
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
メモリマップを表示するコアファイル。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
.I remote-hostname-or-IP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
リモートデバッグサーバ (
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
.B jsadebugd
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
を参照) のホスト名または IP アドレス。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
.I server-id
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
同じリモートホスト上で複数のデバッグサーバが実行している場合、オプションの一意 ID。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
.SH 機能説明
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
.B jmap
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
は、指定されたプロセスまたはコアファイルまたはリモートデバッグサーバの、共有オブジェクトメモリマップまたはヒープメモリの詳細を表示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
指定されたプロセスが 64 ビット VM 上で実行されている場合、\f2\-J\-d64\fP オプションを指定しなければならない場合があります。次に例を示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
jmap \-J\-d64 \-heap pid
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
注 - このユーティリティはサポートされていないため、JDK の将来のバージョンでは使用できない可能性があります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
.br
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
Windows プラットフォーム上で使用可能な唯一の jmap 形式は、次のとおりです。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
jmap \-dump:<\f2dump\-options\fP> pid
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
および 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
jmap \-histo[:live] pid
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
.SH オプション
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
.BI " <no option>"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
オプションが使用されなかった場合、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
.B jmap 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
は共有オブジェクトマッピングを表示します。ターゲット VM に読み込まれた各共有オブジェクトについて、開始アドレス、マッピングのサイズ、および共有オブジェクトファイルのフルパスが表示されます。これは、Solaris の
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
.B pmap 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
ユーティリティと同様です。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
\-dump:[live,]format=b,file=<filename> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
Java ヒープを hprof バイナリ形式で filename にダンプします。\f2live\fP サブオプションは省略可能です。これが指定された場合、ヒープ内で生存中のオブジェクトのみがダンプされます。ヒープダンプを参照するには、生成されたファイルを jhat (Java Heap Analysis Tool) を使って読み取ります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
\-finalizerinfo 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
ファイナライズを待っているオブジェクトに関する情報を出力します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
.B \-heap
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
ヒープのサマリを表示します。使用された GC アルゴリズム、ヒープ構成、および生成規模のヒープ使用率が表示されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
.B \-histo[:live] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
ヒープのヒストグラムを表示します。各 Java クラスについて、オブジェクト数、メモリサイズ(バイト数)、および完全修飾クラス名が表示されます。VM 内部クラス名の前には '*' が表示されます。\f2live\fP サブオプションが指定された場合、生存中のオブジェクトのみがカウントされます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
.B \-permstat
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
Java ヒープの永続的生成のクラスローダ規模の統計を表示します。各クラスローダについて、名前、活動性、アドレス、親クラスローダ、および読み込まれたクラスのサイズが表示されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
さらに、intern された文字列の数とサイズも出力されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
\-F 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
強制 (Force)。pid が応答しない場合に、jmap \-dump または jmap \-histo オプションとともに使用します。このモードでは、\f2live\fP サブオプションはサポートされません。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
.B \-h
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
ヘルプメッセージを表示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
.B \-help
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
ヘルプメッセージを表示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
\-J<flag> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
jmap が実行されている Java 仮想マシンに <flag> を渡します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
.SH 関連項目
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
pmap (1) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
jhat 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
jps 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
jsadebugd 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166