Example of an XML publication for resource statistics

This example message shows an XML publication that contains resource statistics data.

A single XML publication includes all the statistics information that is reported for the resource types listed in Resource statistics data. The publication message starts with information that identifies the integration node and the integration server to which the statistics apply.

For information about subscribing to these publication messages, see Subscribing to event message topics.

The following message is an example that shows three sections, one for each of three different resource types, and the values that are returned for each type. The output lines in this example have been split to improve readability.

<ResourceStatistics 
  brokerLabel="STRESS1" 
  brokerUUID="1a09649b-c9b9-4efe-a9c0-5275f6dd6c3f" 
  executionGroupName="eg.EAS.JVM.1" 
  executionGroupUUID="d6a3b481-2401-0000-0080-c5acc915fa62" 
  collectionStartDate="2009-10-22" collectionStartTime="11:42:17"   
  startDate="2009-10-23" startTime="17:59:36.152" 
  endDate="2009-10-23" endTime="17:59:56.154"
  timezone="Europe/London">
  <ResourceType name="JVM">
    <resourceIdentifier name="summary" 
      InitialMemoryInMB="32" UsedMemoryInMB="30" 
      CommittedMemoryInMB="52" MaxMemoryInMB="-1" 
      CumulativeGCTimeInSeconds="0" 
      CumulativeNumberOfGCCollections="32"/>
    <resourceIdentifier name="Heap Memory" 
      InitialMemoryInMB="32" UsedMemoryInMB="14"
      CommittedMemoryInMB="32" MaxMemoryInMB="256"/>
    <resourceIdentifier name="Non-Heap Memory" 
      InitialMemoryInMB="0" UsedMemoryInMB="16" 
      CommittedMemoryInMB="20" MaxMemoryInMB="-1"/>
    <resourceIdentifier name="Garbage Collection - J9 GC" 
      CumulativeGCTimeInSeconds="0" 
      CumulativeNumberOfGCCollections="32"/>
  </ResourceType>
  <ResourceType name="JMS">
    <resourceIdentifier name="summary" 
      NumberOfOpenJMSConnections="3" 
      NumberOfClosedJMSConnections="4" 
      NumberOfOpenJMSSessions="12" 
      NumberOfClosedJMSSessions="9" 
      NumberOfMessagesReceived="7" 
      NumberOfMessagesSent="19" 
      NumberOfMessagesBrowsed="4" 
      NumberOfJMSConnectionFailures="0"/>
    <resourceIdentifier name="JMSTest_ASYNCQCF" 
      NumberOfOpenJMSConnections="1" 
      NumberOfClosedJMSConnections="0" 
      NumberOfOpenJMSSessions="3" 
      NumberOfClosedJMSSessions="0"
      NumberOfMessagesReceived="7" 
      NumberOfMessagesSent="4" 
      NumberOfMessagesBrowsed="4" 
      NumberOfJMSConnectionFailures="0"/>
    <resourceIdentifier name="JMSTest1_ASYNCQCF" 
      NumberOfOpenJMSConnections="1" 
      NumberOfClosedJMSConnections="0" 
      NumberOfOpenJMSSessions="1" 
      NumberOfClosedJMSSessions="0"
      NumberOfMessagesReceived="0" 
      NumberOfMessagesSent="15" 
      NumberOfMessagesBrowsed="0" 
      NumberOfJMSConnectionFailures="0"/>
  </ResourceType>
  <ResourceType name="Security">
    <resourceIdentifier name="summary" 
      TotalCacheEntries="10" 
      TotalOperations="9" 
      TotalSuccessfulOperations="6" 
      TotalOperationsServicedByCache="3"/>
    <resourceIdentifier name="LDAP" 
      TotalOperations="3" 
      TotalSuccessfulOperations="1" 
      TotalOperationsServicedByCache="0" 
      TotalCacheEntries="0"/>
    <resourceIdentifier name="WS-Trust v1.3 STS" 
      TotalOperations="6" 
      TotalSuccessfulOperations="5" 
      TotalOperationsServicedByCache="3" 
      TotalCacheEntries="0"/>  
  </ResourceType>
  <ResourceType name="Sockets">
    <resourceIdentifier name="summary" 
      TotalMessages="826" 
      TotalSocketsOpened="0" 
      AverageSocketsOpenedPerMinute="0" 
      TotalBytesSent="1715189" 
      AverageBytesSentPerSecond="85758" 
      TotalBytesReceived="116879" 
      AverageBytesReceivedPerSecond="5843" 
      AverageBytesSentPerMessage="2076" 
      AverageBytesReceivedPerMessage="141" 
      SentMessageSize_0-1KB="0" 
      SentMessageSize_1KB-10KB="826" 
      SentMessageSize_10KB-100KB="0" 
      SentMessageSize_100KB-1MB="0" 
      SentMessageSize_1MB-10MB="0" 
      SentMessageSize_Over10MB="0" 
      ReceivedMessageSize_0-1KB="826" 
      ReceivedMessageSize_1KB-10KB="0" 
      ReceivedMessageSize_10KB-100KB="0" 
      ReceivedMessageSize_100KB-1MB="0" 
      ReceivedMessageSize_1MB-10MB="0" 
      ReceivedMessageSize_Over10MB="0"/>
    <resourceIdentifier name="9.146.149.86.7900" 
      TotalMessages="413" 
      AverageMessagesPerMinute="1239" 
      TotalSocketsOpened="0" 
      AverageSocketsOpenedPerMinute="0" 
      TotalBytesSent="837977" 
      AverageBytesSentPerSecond="41898" 
      TotalBytesReceived="60298" 
      AverageBytesReceivedPerSecond="3014" 
      AverageBytesSentPerMessage="2029" 
      AverageBytesReceivedPerMessage="146" 
      SentMessageSize_0-1KB="0" 
      SentMessageSize_1KB-10KB="413" 
      SentMessageSize_10KB-100KB="0" 
      SentMessageSize_100KB-1MB="0" 
      SentMessageSize_1MB-10MB="0" 
      SentMessageSize_Over10MB="0" 
      ReceivedMessageSize_0-1KB="413" 
      ReceivedMessageSize_1KB-10KB="0" 
      ReceivedMessageSize_10KB-100KB="0" 
      ReceivedMessageSize_100KB-1MB="0" 
      ReceivedMessageSize_1MB-10MB="0" 
      ReceivedMessageSize_Over10MB="0"/>
    <resourceIdentifier name="localhost.7900" 
      TotalMessages="413" 
      AverageMessagesPerMinute="1239" 
      TotalSocketsOpened="0" 
      AverageSocketsOpenedPerMinute="0" 
      TotalBytesSent="877212" 
      AverageBytesSentPerSecond="43860" 
      TotalBytesReceived="56581" 
      AverageBytesReceivedPerSecond="2829" 
      AverageBytesSentPerMessage="2124" 
      AverageBytesReceivedPerMessage="137" 
      SentMessageSize_0-1KB="0" 
      SentMessageSize_1KB-10KB="413" 
      SentMessageSize_10KB-100KB="0" 
      SentMessageSize_100KB-1MB="0" 
      SentMessageSize_1MB-10MB="0" 
      SentMessageSize_Over10MB="0" 
      ReceivedMessageSize_0-1KB="413" 
      ReceivedMessageSize_1KB-10KB="0" 
      ReceivedMessageSize_10KB-100KB="0" 
      ReceivedMessageSize_100KB-1MB="0" 
      ReceivedMessageSize_1MB-10MB="0" 	
      ReceivedMessageSize_Over10MB="0"/>
  </ResourceType>
  <ResourceType name="Message parsers">
    <resourceIdentifier name="summary" 
      Threads="1" 
      ApproxMemKB="3" 
      MaxReadKB="1" 
      MaxWrittenKB="0"
      Fields="100"
      Reads="1"
      FailedReads="0"
      Writes="0"
      FailedWrites="0"/>
    <resourceIdentifier name="Flow1.XMLNSC" 
      Threads="1" 
      ApproxMemKB="3" 
      MaxReadKB="1" 
      MaxWrittenKB="0"
      Fields="100"
      Reads="1"
      FailedReads="0"
      Writes="0"
      FailedWrites="0"/>
  </ResourceType>
</ResourceStatistics>

All times are reported in local time, and the timezone used is reported by the timezone attribute in the standard TZ Area/Location format. The date is in the format yyyy-MM-dd, and time is in the format HH:mm:ss, independent of locale and timezone.

The collectionStartDate and collectionStartTime specify when resource statistics collection started, typically when the integration server was last started.

The endDate and endTime specify when the statistics data in the current message was gathered. The startDate and startTime is when the previous set of data was reported.