You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is Memory leak when using Eh107CacheManager.getCacheNames() as per #3229.
I am upgrading net.sf.ehcache ehcache from 2.10.6 to org.ehcache ehcache with 3.10.8 jakarta as classifier.
URL configUrl = getClass().getResource("/ehcache.xml");
CachingProvider cachingProvider = Caching.getCachingProvider("org.ehcache.jsr107.EhcacheCachingProvider");
javax.cache.CacheManager cacheManager = cachingProvider.getCacheManager(configUrl.toURI(), getClass().getClassLoader());
for (String cacheName : cacheManager.getCacheNames()) {
}
In many places , I am retrieveing cacheName with help of above code.
Is there any alternative get all the cache names if it creating memory leak issue?
In old code, we using below these attributes to display healthcheck of cache.
Hi,
There is Memory leak when using Eh107CacheManager.getCacheNames() as per #3229.
I am upgrading net.sf.ehcache ehcache from 2.10.6 to org.ehcache ehcache with 3.10.8 jakarta as classifier.
URL configUrl = getClass().getResource("/ehcache.xml");
CachingProvider cachingProvider = Caching.getCachingProvider("org.ehcache.jsr107.EhcacheCachingProvider");
javax.cache.CacheManager cacheManager = cachingProvider.getCacheManager(configUrl.toURI(), getClass().getClassLoader());
for (String cacheName : cacheManager.getCacheNames()) {
}
In many places , I am retrieveing cacheName with help of above code.
Is there any alternative get all the cache names if it creating memory leak issue?
In old code, we using below these attributes to display healthcheck of cache.
Map<String, Object> cacheMap = new TreeMap<String, Object>();
CacheConfiguration cacheConfig = cache.getCacheConfiguration();
CacheStatistics statistics = new CacheStatistics(cache);
cacheMap.put("DiskExpiryThreadIntervalSeconds", cacheConfig.getDiskExpiryThreadIntervalSeconds());
cacheMap.put("DiskPersistent", cacheConfig.isDiskPersistent());
cacheMap.put("MaxElementsInMemory", cacheConfig.getMaxElementsInMemory());
cacheMap.put("MemoryStoreEvictionPolicy", cacheConfig.getMemoryStoreEvictionPolicy());
cacheMap.put("OverflowToDisk", cacheConfig.isOverflowToDisk());
cacheMap.put("InMemoryHits", statistics.getInMemoryHits());
What are alternative in 3.10.8 for above attributes.
Is there any doc/example which can help me?
Any help on this appreciated.
Thanks,
The text was updated successfully, but these errors were encountered: