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

Recuperação de Estatísticas de PMI do Recurso de Particionamento

Se você estiver interessado nas estatísticas de PMI de uma partição específica ou de um servidor, poderá recuperá-las diretamente utilizando a ferramenta wsadmin ou o MBean JMX.

Por que e quando realizar esta tarefa

Se você assinou as estatísticas de PMI do recurso de particionamento utilizando o comando wpfadmin ou o WPFJMX MBean, poderá utilizar o wpfadmin para recuperar as estatísticas:
  • 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

O PMI_SUBSCRIPTION_ID é o ID do cliente que você obtém ao assinar a PMI do recurso de particionamento. Se você utilizar --top option, a saída será atualizada a cada intervalo de atualização especificado, como o principal comando Unix. Além disso, você também pode utilizar o código Java, o script jacl ou o script jython para obter o WPFJMX MBean para obter estatísticas semelhantes aos exemplos mostrados em 10.5.2.

  1. Execute o seguinte comando para obter os dados de PMI.
    wpfadmin getResponseTime --id 1
    Você verá a seguinte saída:
    WPFC0065I: Id definido como 1
    
    PartitionName TotalResponseTime TransactionCount  MinTime  MaxTime
    StartTime  SumOfSquaresWPFC0045I: Não existem estatísticas disponíveis!
    Aguarde e tente novamente.
    
    Você não encontra nenhum dado estatístico porque ainda não existem dados de PMI no sistema. Agora, você pode executar o cliente para gerar algumas estatísticas.
  2. Abra uma janela de comandos ou shell, execute o seguinte comando:
    <raiz_de_instalação_do_ND>/bin/launchClient
    <raiz_de_instalação_do_ND>/installedApps/<CELL_NAME>
    /WPFKeyBasedPartitionSample.ear
    -CCproviderURL=orbaloc::HOSTNAME:SERVER_RMI_PORT
    em que, HOSTNAME é o nome do host que possui o servidor de aplicativos e SERVER_RMI_PORT é a porta RMI desse servidor, por exemplo, 9811. Você verá execuções do cliente com uma saída semelhante à seguinte:
    IBM WebSphere Application Server, Release 5.1
    J2EE Application Client Tool
    Copyright IBM Corp., 1997-2003
    WSCL0012I: Processando argumentos da linha de comandos.
    WSCL0013I: Inicializando o J2EE Application Client Environment.
    WSCL0035I: A inicialização do J2EE Application Client Environment
    foi concluída.
    WSCL0014I: Chamando a classe do Application Client
    com.ibm.websphere.wpf.client.WPFKeyBasedPartitionClient
    Criar Partições de PK000001 a 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. Aguarde, pelo menos, de um a dois minutos para permitir que o agregador classifique as estatísticas e, em seguida, execute wpfadmin getResponseTime -id 1 novamente. Você verá a seguinte saída.
    WPFC0065I: Id definido como 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
    Observe que o TotalResponseTime em sua saída pode ser diferente do exibido aqui, pois o tempo de resposta é gerado como um valor aleatório.



Related concepts
Monitoração de Desempenho

Tópico de Tarefa    

Termos de Uso | Feedback Última atualização: Mar 21, 2006 12:52:01 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. Todos os Direitos Reservados.
Este centro de informações é desenvolvido em tecnologia Eclipse. (http://www.eclipse.org)