Confirm caching is working in cluster
If you have distributed caching working and you turn the
ehcache logging setting to debug
, you will see log entries
similar to the following in the native_cache.log file.
The log entries will determine whether the JVM is receiving
a message from the remote cache. Within the log file you should see
the given IP address, port, and cache name.
The following sample code shows the cache setting in the log4j2.xml
file:
<Logger name=" net.sf.ehcache " level="debug" additivity="false">
<AppenderRef ref="NATIVE_CACHE" />
</Logger>
The following sample code shows caching is working in a cluster
in the native_cache.log file.
Note: The URL and
port will be different for your setup.
2013-05-14 22:25:25,293 [Multicast keep-alive Heartbeat Receiver thread-1]
DEBUG net.sf.ehcache.distribution.RMICacheManagerPeerProvider -
Lookup URL //192.168.1.69:59569/workflowCache