JAX-WS 監視

您可以使用端點 MXBean 來進行 Liberty 的 JAX-WS 監視。

JAX-WS 應用程式中的每個端點和作業都有效能資料可供使用。 每個 Web 服務端點都有它自己的 MXBean。

用來識別每個端點 MXBean 的 ObjectName,可能是下列其中一種格式:
org.apache.cxf:bus.id=<bus.name>,type=Performance.Counter.Server,service="<NameSpace><ServiceName>",port="<PortName>"
org.apache.cxf:bus.id=<bus.name>,type=Performance.Counter.Client,service="<NameSpace><ServiceName>",port="<PortName>"
例如:
org.apache.cxf:bus.id=JaxWsLibertyDemo-Server-Bus,type=Performance.Counter.Server,
    service="{http://jaxws.samples/}SimpleEchoService",port="SimpleEchoPort"org.apache.cxf:bus.id=JaxWsLibertyDemo-Server-Bus,type=Performance.Counter.Client,
    service="{http://jaxws.samples/}SimpleEchoService",port="SimpleEchoPort"

這個 MXBean 負責報告每個端點和作業的 Web 服務狀態。

計數器定義(MXBean 屬性)
  • AvgResponseTime:平均回應時間(毫秒)。
  • MaxResponseTime:回應時間上限(毫秒)。
  • MinResponseTime:回應時間下限(毫秒)。
  • NumInvocations:對這個端點或作業的呼叫次數。
  • NumChekedApplicationFaults:已檢查的應用程式錯誤數目。
  • NumLogicalRuntimFaluts:邏輯執行時期錯誤的數目。
  • NumRuntimeFaults:執行時期錯誤的數目。
  • NumUnCheckedApplicationFaults:未檢查的應用程式錯誤的數目。
  • TotalHandlingTime:回應處理時間總計(毫秒)。
管理介面
Web 服務應用程式監視的管理介面是 org.apache.cxf.management.counters.ResponseTimeCounterMBean您可以利用管理介面來取得虛擬物件。請參閱 「存取 MBean 屬性和作業」範例
如需 org.apache.cxf.management.counters.ResponseTimeCounterMBean 的相關資訊,請參閱 Apache CXF Javadoc

指示主題類型的圖示 參照主題

檔名:rwlp_mon_webservice.html