diff --git a/src/main/java/org/gcube/portlets/user/databasesmanager/server/GWTdbManagerServiceImpl.java b/src/main/java/org/gcube/portlets/user/databasesmanager/server/GWTdbManagerServiceImpl.java index 33b1250..6b651d7 100644 --- a/src/main/java/org/gcube/portlets/user/databasesmanager/server/GWTdbManagerServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/databasesmanager/server/GWTdbManagerServiceImpl.java @@ -2135,11 +2135,13 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements private synchronized void insertDataIntoCache(net.sf.ehcache.Element data) throws Exception{ if(cacheManager.cacheExists("DBCache")){ - logger.info("dbmanager-> disk store path for cache: " + cacheManager.getDiskStorePath() +"Cache Status: "+DBCache.getStatus().toString()); + logger.info("dbmanager-> disk store path for cache: " + cacheManager.getDiskStorePath() +" Cache Status: "+DBCache.getStatus().toString()); if (DBCache.getStatus().toString().equals(Status.STATUS_ALIVE.toString())){ DBCache.put(data); - logger.trace("dbmanager-> element with key: " + data.getKey().toString()+" added in cache"); - + if(DBCache.isKeyInCache(data.getKey().toString())){ + logger.trace("dbmanager-> element with key: " + data.getKey().toString()+" added in cache"); + } + logger.info("dbmanager-> ** SIZE OF THE MEMORY STORE: "+ DBCache.calculateInMemorySize()); // logger.trace("dbmanager-> ** SIZE OF THE OFF HEAP"+ DBCache.calculateOffHeapSize()); logger.info("dbmanager-> ** SIZE OF THE DISK STORE SIZE: "+ DBCache.calculateOnDiskSize());