Chapter 7. Metrics and Statistics
In this chapter, we will demonstrate how to produce statistical data points and collect metrics. Hibernate can be configured to start collecting and producing this data. Additionally, we will see how it can be collected through Java Management Extension (JMX). We will be covering the following topics in detail:
- Statistical data types:
- Session
- Entity
- Collection
- Query
- Cache
- Statistics via JMX:
- An introduction to JMX
- Using JMX with Hibernate