Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/385.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Ehcache&x2B;休眠日志输出_Java_Hibernate_Ehcache - Fatal编程技术网

Java Ehcache&x2B;休眠日志输出

Java Ehcache&x2B;休眠日志输出,java,hibernate,ehcache,Java,Hibernate,Ehcache,当与Hibernate二级缓存一起使用时,我接收到Eh缓存日志记录输出-我不理解输出及其含义。它被大量打印到日志中 DEBUG [net.sf.ehcache.store.disk.Segment] put added 0 on heap DEBUG [net.sf.ehcache.store.disk.Segment] put updated, deleted 0 on heap 有人能解释一下这可能意味着什么吗?我的二级缓存似乎正在工作,根据打印的统计数据 INFO [com.atla

当与Hibernate二级缓存一起使用时,我接收到Eh缓存日志记录输出-我不理解输出及其含义。它被大量打印到日志中

 DEBUG [net.sf.ehcache.store.disk.Segment] put added 0 on heap
 DEBUG [net.sf.ehcache.store.disk.Segment] put updated, deleted 0 on heap
有人能解释一下这可能意味着什么吗?我的二级缓存似乎正在工作,根据打印的统计数据

INFO [com.atlaschase.falcon.commands.domain.AircraftCommandResolutionService] [  name = aircraftCache cacheHits = 824 onDiskHits = 0 offHeapHits = 0 inMemoryHits = 824 misses = 182 onDiskMisses = 182 offHeapMisses = 0 inMemoryMisses = 182 size = 91 averageGetTime = 1.0745527 evictionCount = 0 ]
任何帮助都将不胜感激


Simon

此输出由生成,默认情况下在EhCache中启用IIRC。基本上,EhCache会将缓存的数据从内存溢出到磁盘。如果要禁用此功能,请将
overflowToDisk
属性设置为
flase

<cache name="..." overflowToDisk="false"

哦,有人能确认“averageGetTime”是毫秒而不是秒吗?
public float getAverageGetTimeMillis() {
    //...
    return (float) totalGetTimeTakenMillis.get() / hitCount;
}