JCR-1751: Method getSize of JBossCacheWorkspaceStorageCache disturbs cache eviction
Problem analysis
* Traversing JBoss cache to calculate the number of alive nodes forces their refresh because of read access. It resets TTL of the nodes and their eviction is delayed. When calling getSize() more frequently than TTL of JBoss Cache entries, they will remain in memory causing a memory leak.
Fix description
* Problem was fixed by using internal JBoss Cache instruments that skips invocation of Interceptor Chain on read access and thus doesn't influence the eviction mechanism. Cache nodes are peeked from DataContainer directly without refreshing TTL timeouts.