Learn about the data that is returned for the sockets resource type when you activate resource statistics collection.
You can view these statistics in the IBM® Integration Explorer, or you can write a program that subscribes to a publication (single XML message) that returns this data. For an example of the publication message, see Example XML output.
Outbound sockets are used by the integration server when a message is sent out through a SOAP, SCA, or HTTP request node. SOAP and SCA nodes always use keepalive sockets; therefore outbound sockets are reused for many requests. HTTPRequest nodes use keepalive sockets only if you set the property Enable HTTP/1.1 keep-alive. Use these resource statistics to review whether you are reusing outbound sockets, and to see the size and volume of message data that is flowing through those sockets.
A statistics summary is returned, followed by an entry for each outbound socket endpoint, which is defined by its URL. Examples of endpoints are localhost:7080 and www.soaphub.org:80.
Measurements | Description |
---|---|
TotalSockets | The number of outbound sockets that have been opened since the last integration server restart. |
TotalMessages | The number of requests for a socket; for example, from a SOAPRequest node. |
TotalDataSent_KB | The number of bytes sent, in kilobytes (KB). |
TotalDataReceived_KB | The number of bytes received, in kilobytes (KB). |
SentMessageSize_0-1KB |
The number of messages sent in each size range. For example, a message of 999 bytes is counted in SentMessageSize_0-1KB; a message of 1000 bytes is counted in SentMessageSize_1KB-10KB. |
ReceivedMessageSize_0-1KB |
The number of messages received in each size range. |