WebSphere Extended Deployment, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows, z/OS

区画化機能 PMI 統計の取得

特定の区画またはサーバーの PMI 統計は、wsadmin ツールまたは JMX MBean を使用して直接取得することができます。

Why and when to perform this task

wpfadmin コマンドまたは WPFJMX MBean を使用して区画化機能 PMI 統計をサブスクライブしている場合は、 次のように、wpfadmin を使用して統計を取得できます。
  • wpfadmin.bat|wpfadmin getTransactionCount --id PMI_SUBSCRIPTION_ID
  • --top REFRESH_INTERVAL.
  • wpfadmin.bat|wpfadmin getResponseTime --id PMI_SUBSCRIPTION_ID
  • --top REFRESH_INTERVAL.
  • REFRESH_INTERVAL.
  • wpfadmin.bat|wpfadmin getFailedTransactionCount --id PMI_SUBSCRIPTION_ID

PMI_SUBSCRIPTION_ID は、区画化機能 PMI をサブスクライブするときに取得するクライアント ID です。--top option を使用する場合、 Unix の top コマンドのように、指定された最新表示間隔ごとに、出力が更新されます。 また、Java コード、jacl スクリプト、または jython スクリプトを使用して、 WPFJMX MBean を取得し、10.5.2 に示される例に似た統計を取得することもできます。

  1. 次のコマンドを実行して、PMI データを取得します。
    wpfadmin getResponseTime --id 1
    以下の出力が表示されます。
    WPFC0065I: Id set to 1
    
    PartitionName TotalResponseTime TransactionCount  MinTime  MaxTime
    StartTime  SumOfSquaresWPFC0045I: No statistics are available!
    Please wait and try again.
    
    まだシステムには PMI データがないため、統計データは表示されません。 ここで、クライアントを実行して、統計をいくつか生成することができます。
  2. 新規のコマンド・ウィンドウまたはシェルを開き、以下のコマンドを実行します。
    <ND_install_root>/bin/launchClient 
    <ND_install_root>/installedApps/<CELL_NAME>/WPFKeyBasedPartitionSample.ear 
    -CCproviderURL=orbaloc::HOSTNAME:SERVER_RMI_PORT
    ここで、HOSTNAME はアプリケーション・サーバーのあるホストの名前、 SERVER_RMI_PORT はそのサーバーの RMI ポートで、 例えば 9811 です。クライアントが実行され、以下のような出力が表示されます。
    IBM WebSphere Application Server, Release 5.1
    J2EE Application Client Tool
    Copyright IBM Corp., 1997-2003
    WSCL0012I: Processing command line arguments.
    WSCL0013I: Initializing the J2EE Application Client Environment.
    WSCL0035I: Initialization of the J2EE Application Client Environment
    has completed.
    WSCL0014I: Invoking the Application Client class
    com.ibm.websphere.wpf.client.WPFKeyBasedPartitionClient
    Create Partitions from PK000001 to PK000010
    1st call: PK000001->partiton=PK000001,server=Tiger1/clus1srv1
    2nd call: PK000001->partiton=PK000001,server=Tiger1/clus1srv1
    3rd call: PK000001->partiton=PK000001,server=Tiger1/clus1srv1
    1st call: PK000002->partiton=PK000002,server=Tiger1/clus1srv1
    2nd call: PK000002->partiton=PK000002,server=Tiger1/clus1srv1
    3rd call: PK000002->partiton=PK000002,server=Tiger1/clus1srv1
    1st call: PK000003->partiton=PK000003,server=Tiger1/clus1srv1
    2nd call: PK000003->partiton=PK000003,server=Tiger1/clus1srv1
    3rd call: PK000003->partiton=PK000003,server=Tiger1/clus1srv1
    1st call: PK000004->partiton=PK000004,server=Tiger1/clus1srv1
    2nd call: PK000004->partiton=PK000004,server=Tiger1/clus1srv1
    3rd call: PK000004->partiton=PK000004,server=Tiger1/clus1srv1
    1st call: PK000005->partiton=PK000005,server=Tiger1/clus1srv1
    2nd call: PK000005->partiton=PK000005,server=Tiger1/clus1srv1
    3rd call: PK000005->partiton=PK000005,server=Tiger1/clus1srv1
    1st call: PK000006->partiton=PK000006,server=Tiger1/clus1srv1
    2nd call: PK000006->partiton=PK000006,server=Tiger1/clus1srv1
    3rd call: PK000006->partiton=PK000006,server=Tiger1/clus1srv1
    1st call: PK000007->partiton=PK000007,server=Tiger1/clus1srv1
    2nd call: PK000007->partiton=PK000007,server=Tiger1/clus1srv1
    3rd call: PK000007->partiton=PK000007,server=Tiger1/clus1srv1
    1st call: PK000008->partiton=PK000008,server=Tiger1/clus1srv1
    2nd call: PK000008->partiton=PK000008,server=Tiger1/clus1srv1
    3rd call: PK000008->partiton=PK000008,server=Tiger1/clus1srv1
    1st call: PK000009->partiton=PK000009,server=Tiger1/clus1srv1
    2nd call: PK000009->partiton=PK000009,server=Tiger1/clus1srv1
    3rd call: PK000009->partiton=PK000009,server=Tiger1/clus1srv1
    1st call: PK000010->partiton=PK000010,server=Tiger1/clus1srv1
    2nd call: PK000010->partiton=PK000010,server=Tiger1/clus1srv1
    3rd call: PK000010->partiton=PK000010,server=Tiger1/clus1srv1
    
  3. 集計サービスが統計をソートするまで少なくとも 1 分から 2 分待機し、 もう一度 wpfadmin getResponseTime -id 1 を実行します。以下の出力が表示されます。
    WPFC0065I: Id set to 1
    
    PartitionName TtlRspnsTm  TrnsctnCnt  MinTime MaxTime  StartTime   SumOfSqrs
    PK000004      1625           3            7     903  1094180666309 1226203
    PK000010      1543           3          260     671  1094180667170 892385
    PK000005      1423           3           51     965  1094180666389 1099475
    PK000008       932           3           99     482  1094180666990 365326
    PK000002       862           3          217     364  1094180666038 258546
    応答時間はランダム値として生成されるので、出力の TotalResponseTime は上記のものと異なる場合があります。



Related concepts
パフォーマンスのモニター

Task topic    

Terms of Use | Feedback Last updated: Mar 20, 2006 12:35:11 PM EST
http://publib.boulder.ibm.com/infocenter/wxdinfo/v6r0/index.jsp?topic=?topic=/com.ibm.websphere.xd.doc/info/WPF51/twpfpmistatretrieve_pdf.html

© Copyright IBM 2005, 2006. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)