Gathering EMS server statistics details

Gathering EMS server statistics details

book

Article ID: KB0071736

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service All

Description

To gather statistics details of the ems server, you can use either of the following steps:

a) The “show server” command from tibemsadmin tool shows the connected EMS server statistics.

To capture the server statistics over a period of time follow the below steps:

1. Create a file emsStat.script containing the tibemsadmin commands as follows:
time on
show server

2. Then from the command prompt, if tibemsadmin is started using the following command, then the commands inside the scripts will be executed and displayed in the command prompt.

$ tibemsadmin –server tcp://localhost:7222 –script emsStat.script –user admin -password pass

For more explanation on tibemsadmin command line option please refer to TIBCO ems Users Guide manual Chapter 6: Using the EMS administrator Tool.

3. You can write a shell script to execute the command periodically as follows.
-----------------
#!/bin/bash
while true
do
emsStat=`tibemsadmin -server tcp://localhost:7222 -script emsStat.script -user admin –password pass`
echo "$emsStat"
sleep 60
done
----------------
The output can be redirect the to a file.

Note: You might consider using the following set of commands from the EMS Administration Tool or from EMS Admin APIs as well:
show stat consumers [topic=name|queue=name] [user=name][connection=id] [total]
show stat producers [topic=name|queue=name] [user=name][connection=id] [total]
show stat route [topic=name|queue=name] [total] [wide]
show stat topic name [total] [wide]
show stat queue name [total] [wide]

The above command displays statistics for the specified item. You can display statistics for consumers, producers, routes, or destinations. Statistic gathering must be enabled for statistics to be displayed. Also, detailed statistics for each item can be displayed if detailed statistic tracking is enabled. Averages for inbound/outbound messages and message size are available if an interval is specified in the rate_interval configuration parameter.
The total keyword specifies that only total number of messages and total message size for the item should be displayed. The wide keyword displays inbound and outbound message statistics on the same line.

b) You can use "Statistics Logger​ for TIBCO Enterprise Message Service™" an open utility for capturing the ems details:
https://community.tibco.com/wiki/statistics-logger-tibco-enterprise-message-service

c) TIBCO Administrator can be used to monitor and configure queue which is web based. This has a web-based interface, where you can monitor the EMS queues and topics (almost the same functionalities as tibemsadmin), once you add the EMS server to your administrator domain.

Please refer to section “Monitoring Server Activity” of EMS User’s Guide which has detailed information to monitor and manage the TIBCO Enterprise Message Service server.

d) We also have TIBCO Enterprise RTView to capture the ems server stats. You can download from our download site, it is called TIBCO Enterprise RTView Software.
 

Environment

All

Issue/Introduction

We can capture the ems stats by following some of the mentioned commands and tools in this article.