Book Image

Infinispan data grid platform definitive guide

Book Image

Infinispan data grid platform definitive guide

Overview of this book

Table of Contents (20 chapters)
Infinispan Data Grid Platform Definitive Guide
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Interacting with Infinispan via JMX


Infinispan has a broad support for JMX in order to provide external access to monitor statistical information and control the cache data of each Infinispan instance, and it also provides two different levels of information, CacheManager and Cache.

The CacheManager level

By default, both levels are disabled. In the CacheManager level, you can extract global statistics for all cache instances managed from a given CacheManager object, as we could see earlier; CacheManager is the mechanism from which you can retrieve new cache instances.

If you are an Infinispan 6 user and you want to configure it declaratively, you can enable the monitoring characteristics of the CacheManager level using the <globalJMXStatistics> tag, under a <global> tag to define the global JMX settings, which will be shared with existing cache instances under the domain of a single CacheManager.

The following example shows a global JMX configuration. In order to enable global JMX...