Ehcache monitoring and logging (Intermediate)
In this recipe, we will cover the following topics:
- Monitoring an Ehcache-enabled web application
- Configuring logging correctly with standard libraries
- Integrating Ehcache with third-party monitoring solutions
We will examine how to monitor and log an Ehcache-based application. We will use third-party open source Java Melody for viewing Ehcache activities as well as other important factors. We will also look at how to configure SLF4J (Ehcache logging interface) with Log4j, as this is the standard Java logging library used in many projects worldwide.
Caching is all about memory fluctuations, disk writing/reading, and performance statistics; so it rapidly becomes a production issue if it is not ...