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.

Getting ready

Caching is all about memory fluctuations, disk writing/reading, and performance statistics; so it rapidly becomes a production issue if it is not ...

Get Instant Effective Caching with Ehcache now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.