jdk/src/linux/doc/man/ja/jps.1
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 2692 345bc8d65b19
permissions -rw-r--r--
Initial load
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 jps 1 "2006 年 9 月 4 日" "Java SE 6" "ユーザーコマンド"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
.SH 名前
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
jps \- Java 仮想マシンプロセスステータスツール
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 jps 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
.BI [ options ] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
.BI [ hostid ] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
.SH パラメータ
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
.I options
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
コマンド行オプション。
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
.I hostid
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
プロセスレポートを生成するホストのホスト識別子。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
.I hostid
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
には、通信プロトコル、ポート番号、およびその他固有の実装データを示すオプションコンポーネントを含めることができます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
.SH 機能説明
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
.B jps
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
ツールは、ターゲットシステム上の計測機構付き HotSpot Java 仮想マシン (JVM) をリストします。このツールは、アクセス権がある JVM 上の情報だけを報告します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
ホスト ID を指定せずに
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
.B jps
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
が実行された場合は、ローカルホスト上の計測機構付き JVM を探します。ホスト ID が指定された場合は、指定されたホスト上の JVM を、指定されたプロトコルとポートを使用して探します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
.B jstatd 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
プロセスがターゲットホスト上で稼動していることが前提となります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
.B jps 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
コマンドは、ターゲットシステム上で見つかった計測機構付き JVM のそれぞれについて、ローカル VM 識別子 (lvmid) を報告します。lvmid は、一般に、オペレーティングシステムの JVM プロセスのプロセス識別子ですが、必ずしもそうとは限りません。オプションが指定されなかった場合、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
.B jps 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
は各 Java アプリケーションの lvmid の後に短い形式のアプリケーションのクラス名または jar ファイル名を続けてリストします。短い形式のクラス名または JAR ファイル名では、クラスのパッケージ情報や JAR ファイルのパス情報は省かれます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
.B jps 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
コマンドは java 起動ツールを使用して、クラス名と main メソッドに渡された引数を探します。ターゲット JVM がカスタム起動ツールで起動された場合、クラス名 (または JAR ファイル名) と main メソッドに渡された引数は入手できません。この場合、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
.B jps 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
コマンドは、クラス名または JAR ファイル名と main メソッドの引数として、Unknown という文字列を出力します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
.B jps
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
コマンドによって生成される JVM のリストは、コマンドを実行した主体に許可されているアクセス権によって制限されることがあります。このコマンドは、オペレーティングシステム固有のアクセス制御機構に従って、主体がアクセス権を持っている JVM だけをリストします。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
注 - このユーティリティはサポートされていないため、JDK の将来のバージョンでは使用できない可能性があります。現在、Windows 98 および Windows ME プラットフォームでは使用できません。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
.SH オプション
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
.B jps 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
コマンドは、コマンド出力を変更する多数のオプションをサポートしています。これらのオプションは、将来、変更または削除されることがあります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
.BI \-q
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
クラス名、JAR ファイル名、および main メソッドに渡された引数の出力を抑制して、ローカル VM 識別子のリストだけを生成します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
.BI \-m
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
main メソッドに渡された引数を出力します。埋め込み JVM の場合、出力は NULL になることがあります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
.BI \-l
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
アプリケーションの main クラスのフルパッケージ名、またはアプリケーションの JAR ファイルのフルパス名を出力します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
.BI \-v
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
JVM に渡された引数を出力します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
.BI \-V
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
フラグファイル (.hotspotrc ファイル、または -XX:Flags=<filename> 引数によって指定されたファイル) を通じて JVM に渡された引数を出力します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
.BI \-J "option"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
.B jps 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
によって呼び出された java 起動ツールにオプションを渡します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
たとえば、-J-Xms48m は、起動メモリを 48M バイトに設定します。Java で作成された下層の VM 実行アプリケーションにオプションを渡すのが、\-J の一般的規則です。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
.SH ホスト識別子
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
ホスト識別子 (hostid) は、ターゲットシステムを示す文字列です。hostid 文字列の構文は、URI の構文とほぼ同じです。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
.ft 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
[protocol:][[//]hostname][:port][/servername]
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
.ft 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
.B protocol
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
通信プロトコル。protocol が省かれ、hostname が指定されなかった場合、デフォルトのプロトコルは、プラットフォームに固有の最適化されたローカルプロトコルです。protocol が省かれ、hostname が指定された場合、デフォルトのプロトコルは rmi です。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
.I hostname
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
ターゲットホストを示すホスト名または IP アドレス。hostname が省かれた場合、ターゲットホストはローカルホストです。
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
.I port
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
リモートサーバーと通信するためのデフォルトポート。hostname が省かれるか、protocol が最適化されたローカルプロトコルを指定している場合、port は無視されます。そうでない場合、port パラメータの扱いは、実装に固有です。デフォルトの rmi プロトコルの場合、port はリモートホスト上の rmiregistry のポート番号を示します。port が省かれ、protocol が rmi を示す場合は、デフォルトの rmiregistry ポート (1099) が使用されます。
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
.I servername
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
このパラメータの取り扱いは、実装によって異なります。最適化されたローカルプロトコルの場合、このフィールドは無視されます。rmi プロトコルの場合、このパラメータは、リモートホスト上の RMI リモートオブジェクトの名前を表す文字列です。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
.B jstatd
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
コマンドの \-n オプションを参照してください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
.SH 出力形式
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
jps コマンドの出力は、次のパターンに従います。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
.ft 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
lvmid [ [ classname | JARfilename | "Unknown"] [ arg* ] [ jvmarg* ] ]
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
.ft 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
出力トークンはすべて、空白で区切られます。埋め込まれた空白を含む arg があると、引数を実際の位置パラメータにマップするときにあいまいさが生じます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
注 - 将来のリリースで形式が変更される可能性があるので、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
.B jps 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
の出力を解析するスクリプトは書かない方がよいでしょう。jps 出力を解析するスクリプトを書く場合は、このツールの将来のリリースでは修正が必要になることを予想しておいてください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
.SH 使用例
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
このセクションでは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
.B jps 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
コマンドの例を示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
ローカルホスト上の計測機構付き JVM をリストする:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
.ft 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
jps
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
18027 Java2Demo.JAR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
18032 jps
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
18005 jstat
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
.ft 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
.TP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
リモートホスト上の計測機構付き JVM をリストする:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
この例では、jstat サーバーとその内部 RMI レジストリまたは個別の外部 rmiregistry プロセスがリモートホストのデフォルトポート (ポート 1099) で実行していることを前提としています。また、ローカルホストはリモートホストにアクセスするための適切なアクセス権を持っているものとします。また、この例には、長い形式のクラス名または JAR ファイル名を出力するための -l オプションが含まれています。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
.ft 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
jps -l remote.domain
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
3002 /opt/j2sdk1.5.0/demo/jfc/Java2D/Java2Demo.JAR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
2857 sun.tools.jstatd.jstatd
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
.ft 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
RMI レジストリ用にデフォルト以外のポートを使用するリモートホスト上の計測機構付き Java 仮想マシンをリストする:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
この例では、jstatd サーバーがリモートホスト上で実行していて、内部 RMI レジストリがポート 2002 にバインドされていることを前提としています。また、この例では、リストされる各 Java アプリケーションの main メソッドに渡された引数を含めるために、-m オプションを使用しています。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
.ft 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
jps -m remote.domain:2002
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
3002 /opt/j2sdk1.5.0/demo/jfc/Java2D/Java2Demo.JAR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
3102 sun.tools.jstatd.jstatd -p 2002
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
.ft 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
.SH 関連項目
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
java \- Java アプリケーション起動プログラム
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
jstat \- Java 仮想マシン統計監視ツール
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
jstatd \- 仮想マシン jstat デーモン
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
rmiregistry \- Java リモートオブジェクトレジストリ
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207