JMX

Apache Hedwig has extensive support for JMX, which allows viewing and managing a hedwig cluster.

This document assumes that you have basic knowledge of JMX. See Sun JMX Technology page to get started with JMX.

See the JMX Management Guide for details on setting up local and remote management of VM instances. By default the included hedwig script supports only local management - review the linked document to enable support for remote management (beyond the scope of this document).

Hub Server is a JMX manageable server, which registers the proper MBeans during initialization to support JMX monitoring and management of the instance.

Hub Server MBean Reference

This table details JMX for a hub server.

_.MBean_.MBean Object Name_.Description
PubSubServerPubSubServerRepresents a hub server. It is the root MBean for hub server, which includes statistics for a hub server. E.g. number packets sent/received/redirected, and statistics for pub/sub/unsub/consume operations.
NettyHandlersNettyHandlerProvide statistics for netty handlers. Currently it just returns number of subscription channels established to a hub server.
ReadAheadCacheReadAheadCacheProvide read ahead cache statistics.