Check Ehcache configuration

When using Ehcache, some configuration elements can cause instability to your application if they are not configured properly.

This rule scans for configuration elements in the ehcache.xml file that are known to cause instability.

Instead of using the maxElementsInMemory or maxEntriesLocalHeap elements, consider using the maxBytesLocalHeap element in your Ehcache cache configuration to limit the heap usage. Evaluate these configuration settings to avoid stability issues such as out-of-memory errors or errors that occur during heavy loads.