繁体   English   中英

如何更改Pentaho Mondrian 4缓存寿命?

[英]How can I change Pentaho Mondrian 4 cache lifetime?

如何更改Pentaho Mondrian 4缓存寿命?

我想将其减少到5分钟,但在属性文件中未显示任何此类属性。

假设您的意思是mondrian-catalog-cache,

请遵循以下步骤。
1)停止BA服务器
2)导航到\\ biserver-ee \\ tomcat \\ webapps \\ pentaho \\ WEB-INF \\ classes
3)备份文件“ ehcache.xml”
4)打开文件“ ehcache.xml”
5)向下滚动到内容

<cache name="mondrian-catalog-cache"
maxElementsInMemory="30"
eternal="false"
overflowToDisk="true"
timeToIdleSeconds="0"
timeToLiveSeconds="0"
diskPersistent="false"
diskExpiryThreadIntervalSeconds="120"
/>


6)更改的值

timeToIdleSeconds,timeToLiveSeconds,diskExpiryThreadIntervalSeconds


7)保存并重新启动BA服务器
其他缓存也可以这样更改。

据我所知,不可能在mondrian.properties文件中设置Mondrian缓存的刷新期。

如果使用Pentaho BI服务器,请尝试使用社区分布式缓存 您可以在市场上下载它。 这可能有助于解决缓存问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM