<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 97,  comments - 93,  trackbacks - 0
    PMI
    PMI(Performance MonitoringInfrastructure) uses a client and server architecture and it can collect the performance data from one or more  was platform and its components which can help to monitor the health of the application server,as well, process the data.such as the response time of the servlets, JSP component and enterprisebeans performance, JVM,etc.PMI service is a  server component and there r three clients which can retrieve data from the Server by the JMX API, a Web Client, a java Client, Java Management Extensions. Actually, the was platform contains Tivoli performance viewer , a java client which displays && monitors the performance data.

                  Web client                                                            >                PerfServlet PerfMBeans AppServer
                                                                                         V/
              JMX client Java         >                       >               <                      
                         PMI Client Wrapper  JMX ConnectorRMI/SOAP   PerfServlet PerfMBeans AppServer

                 TivoliMViever    /^                   

    What's more , we can create custom-made statistics to best meet our monitoring needs && displays and monitors in a portal. PMI  instrumentation is based on j2ee1.4 and the custom supports all the statistic types, countstatistic timestatistic,rangetatistic, boundedrangestatistic.but as a feature , it cannot support the uerdefined statistic types.
    We can use Admin Client API to get the custom performance data. Was6.1.0,%WAS_HOME%AppServe\runtimes path includes two jar files, and they r all client related Jar files.,%WAS_HOME%AppServe\properties\jmx.properties we can modify these configuration which will stand the corresponding ones of conf.properties.With the Jar file com.ibm.ws.admin.client_6.1.0.jar, as following will give a simple sample about retrieving the custom interesting performance data and here just to get the server node.
     1import java.util.HashSet;
     2import java.util.Iterator;
     3import java.util.Set;
     4
     5import javax.management.MalformedObjectNameException;
     6import javax.management.ObjectName;
     7
     8import com.ibm.websphere.management.AdminClient;
     9import com.ibm.websphere.management.AdminClientFactory;
    10import com.ibm.websphere.management.exception.AdminException;
    11
    12/**
    13 * @author QuQiang
    14 * 
    15 */

    16public class Test {
    17
    18    public static void main(String[] args) {
    19        AdminClient ad = null;
    20        boolean failed = false;
    21        java.util.Properties props = new java.util.Properties();
    22        props.put(AdminClient.CONNECTOR_TYPE, "connector");
    23        props.put(AdminClient.CONNECTOR_HOST, "host");
    24        props.put(AdminClient.CONNECTOR_PORT, "port");
    25        try {
    26            ad = AdminClientFactory.createAdminClient(props);
    27            javax.management.ObjectName on = new javax.management.ObjectName(
    28                    "WebSphere:*");
    29            Set objectNameSet = ad.queryNames(on, null);
    30            HashSet nodeSet = new HashSet();
    31            for (Iterator i = objectNameSet.iterator(); i.hasNext(); on = (ObjectName) i
    32                    .next()) {
    33                String type = on.getKeyProperty("type");
    34                if (type != null && type.equals("Server")) {
    35                    System.out.println(on.getKeyProperty("name"));//node objectName     
    36                }

    37            }

    38
    39        }
     catch (MalformedObjectNameException me) {
    40            failed = true;
    41            new AdminException(me).printStackTrace();
    42            System.out.println("ObjectName: exception");
    43        }
     catch (Exception ex) {
    44            failed = true;
    45            new AdminException(ex).printStackTrace();
    46            System.out.println("getAdminClient: exception");
    47        }

    48    }

    49}

    posted on 2007-07-13 17:32 wqwqwqwqwq 閱讀(1187) 評論(2)  編輯  收藏 所屬分類: IBM Tech

    FeedBack:
    # re: PMI
    2007-07-13 21:08 | 常常
    這是什么代碼啊??

    -------------------------------------------------
    http://www.sy555.com  回復(fù)  更多評論
      
    # re: PMI
    2007-07-13 23:25 | 曲強 Nicky
    @常常
    A sample but not finished code segment about WAS system components performance api Test.
      回復(fù)  更多評論
      
    <2007年7月>
    24252627282930
    1234567
    891011121314
    15161718192021
    22232425262728
    2930311234




    常用鏈接

    留言簿(10)

    隨筆分類(95)

    隨筆檔案(97)

    文章檔案(10)

    相冊

    J2ME技術(shù)網(wǎng)站

    java技術(shù)相關(guān)

    mess

    搜索

    •  

    最新評論

    閱讀排行榜

    校園夢網(wǎng)網(wǎng)絡(luò)電話,中國最優(yōu)秀的網(wǎng)絡(luò)電話
    主站蜘蛛池模板: kk4kk免费视频毛片| 51在线视频免费观看视频| 亚洲情XO亚洲色XO无码| 亚洲日本在线免费观看| 成人亚洲国产精品久久| 亚洲天堂男人天堂| 国产99视频免费精品是看6| 久久国产色AV免费看| 久久亚洲精品成人无码| 久久丫精品国产亚洲av不卡| 国产精品va无码免费麻豆| 青青草无码免费一二三区| 黄网站色成年片大免费高清| 亚洲最新黄色网址| 国产亚洲色视频在线| 在线不卡免费视频| 亚洲精品免费观看| 九九九精品视频免费| 亚洲综合av一区二区三区不卡| 亚洲国产精品免费观看| 亚洲精品无码高潮喷水在线| 免费高清在线爱做视频| 亚欧免费一级毛片| 精品国产污污免费网站入口在线 | 亚洲精品国产精品乱码不99| 美女被免费喷白浆视频| 黄色短视频免费看| 亚洲AV性色在线观看| 亚洲人成在线免费观看| 亚洲AV日韩AV永久无码绿巨人| 成人自慰女黄网站免费大全| 亚洲一级毛片中文字幕| 亚洲va无码va在线va天堂| 免费日本黄色网址| 成年大片免费视频| 国产成人福利免费视频| 久久精品免费视频观看| 男女拍拍拍免费视频网站| 美女视频黄频a免费| 亚洲乱色熟女一区二区三区蜜臀| 亚洲AⅤ无码一区二区三区在线|