Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.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 UpdateTimestampsCache未出现在Terracotta开发控制台中_Java_Hibernate_Ehcache_Terracotta - Fatal编程技术网

Java UpdateTimestampsCache未出现在Terracotta开发控制台中

Java UpdateTimestampsCache未出现在Terracotta开发控制台中,java,hibernate,ehcache,terracotta,Java,Hibernate,Ehcache,Terracotta,我已经为hibernate二级缓存配置了ehcache,以使用Terracotta服务器。一切正常,除了查询缓存的UpdateTimestampsCache没有显示在开发人员控制台中。我们正在使用Hibernate 3.6.10和ehcache 2.6.0 我看到了所有实体、集合、查询和标准QueryCache,但没有看到org.hibernate.cache.UpdateTimestampsCache。我知道时间戳缓存存在并且正在使用,因为我可以使用中插入的度量库查看它的统计信息 有什么想法吗

我已经为hibernate二级缓存配置了ehcache,以使用Terracotta服务器。一切正常,除了查询缓存的UpdateTimestampsCache没有显示在开发人员控制台中。我们正在使用Hibernate 3.6.10和ehcache 2.6.0

我看到了所有实体、集合、查询和标准QueryCache,但没有看到org.hibernate.cache.UpdateTimestampsCache。我知道时间戳缓存存在并且正在使用,因为我可以使用中插入的度量库查看它的统计信息

有什么想法吗? 谢谢

这是我的ehcache.xml配置

<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd"
    updateCheck="false" 
    name="Hibernate-CacheManager"
    monitoring="autodetect"
    dynamicConfig="true">    

<terracottaConfig url="localhost:9510" />

<defaultCache
    eternal="false"
    overflowToDisk="false"
    maxElementsInMemory="50000"
    timeToIdleSeconds="7200"
    timeToLiveSeconds="0">

    <cacheDecoratorFactory 
        class="com.yammer.metrics.ehcache.InstrumentedEhcacheFactory" />

    <terracotta/>
</defaultCache>


<cache
    name="org.hibernate.cache.UpdateTimestampsCache"
    eternal="false"
    overflowToDisk="false"
    maxElementsInMemory="500"
    timeToIdleSeconds="7200"
    timeToLiveSeconds="0">

    <cacheDecoratorFactory 
        class="com.yammer.metrics.ehcache.InstrumentedEhcacheFactory" />

    <terracotta/>

</cache>

<cache
    name="org.hibernate.cache.StandardQueryCache"
    eternal="false"
    overflowToDisk="false"
    maxElementsInMemory="50000"
    timeToIdleSeconds="7200"
    timeToLiveSeconds="0">

    <cacheDecoratorFactory 
        class="com.yammer.metrics.ehcache.InstrumentedEhcacheFactory" />

    <terracotta/>

</cache>
</ehcache>

从以下位置重新复制答案:

Hibernate在Hibernate 4.0.0之前不维护UpdateTimestampsCache缓存的统计信息。这解释了为什么缓存没有显示在terracotta开发控制台中

这是作为bug归档的