Monitoring Pub/Sub Model Topic Statistics
NCache provides you with the monitoring of Pub/Sub Model Topic statistics. The Pub/Sub Model Topic activity and status can be monitored through the following monitoring tools supported by NCache:
Note
This feature is also available in NCache Professional.
Windows Performance Monitor Pub/Sub Model Counters
NCache provides performance counters to monitor the following Pub/Sub Model Topic statistics in a cache:
Counter | Description |
---|---|
Topics Count | Number of topics existing in the cache. |
Messages Count | Number of messages entertained by all topics. This counter is node level for Partitioned caches. |
Messages Expired/sec | Number of messages expired per second. |
Messages Delivered/sec | Number of messages delivered to subscribers per second. |
Messages Published/sec | Number of messages published per second. |
Message Store Size | Size of all message stores in bytes, including message store meta info. |
Command Line Tools
To monitor the Pub/Sub Topic statistics through command line, you can use the following command line tools:
The Get-Topics cmdlet lists Topic-related information registered against one specified cache server. It lists down the Topic names and the respective number of subscribers and publishers against each Topic name on one server. Shown below are some of the examples used.
- This command lists all topics and the number of respective subscribers and publishers registered on the local server for pubSubCache.
Get-Topics -CacheName pubSubCache
- This command lists all the topics with subscriptions and details.
Get-Topics -CacheName pubSubCache -Detail
- This command lists all the topics (default and user-created) along with their subscriptions and details.
Get-Topics -CacheName pubSubCache -ShowAll
See Also
.NET: Alachisoft.NCache.Runtime.Caching namespace.
Java: com.alachisoft.ncache.runtime.caching namespace.
Python: ncache.client.services class.
Node.js: Topic class.