infinispan local-cache file-store size keeps increasing in wildfly 28

183 views
Skip to first unread message

dt pham

unread,
Aug 17, 2023, 1:10:10 PM8/17/23
to WildFly
Dear all,
    I basically have same codes, same cache config to store a fixed number of cache entries using file-store cache. The caches get updates periodically with new value, simple map.put(same-old-key, new-value). The new-value is very much same memory size with old value. In wildfly 24, I see the infinispan file caches are very stable around few MB file system size ( monitoring over hours). However, when running on wildfly 28, the infinispan file caches are consistently increasing the size over the time; the longer it runs, the bigger cache file is.
  I am not sure if I miss any config for the "abc" cache and this is what it looks like on my standalone.xml:
* under <subsystem xmlns="urn:jboss:domain:infinispan:14.0"> for wildfly 28
* under <subsystem xmlns="urn:jboss:domain:infinispan:13.0"> for wildfly 24
<cache-container name="abc" default-cache="a" marshaller="JBOSS">
<local-cache name="a">
<file-store passivation="false" preload="true" purge="false"/>
</local-cache>
<local-cache name="b">
<file-store passivation="false" preload="true" purge="false"/>
</local-cache>
<local-cache name="c">
<file-store passivation="false" preload="true" purge="false"/>
</local-cache>
</cache-container>

dt pham

unread,
Aug 17, 2023, 1:49:09 PM8/17/23
to WildFly
I did have quick test my app on wildfly 29, but having same issue with the file-store size as wildfly 28.

Paul Ferraro

unread,
Aug 22, 2023, 9:41:12 AM8/22/23
to WildFly
This sounds like a regression in the SIFS compactor.  Have you raised this issue with the Infinispan team?

dt pham

unread,
Aug 22, 2023, 4:26:52 PM8/22/23
to WildFly
I raised the issue to infinispan team. Yes, file store cache on wildfly 28 and 29 can be increased over time, but it is capped about 16 MB for each file cache store. In my case, the file caches are updated very often and every time wildfly 28 crashed, it pointed to updating file store caches, so I looked at the file stores, I saw it kept increasing to some MB for each file cache while the same app running on wildfly 24 has very stable file size in KB. Actually, the file size increasing is not my real problem, but the file compactor causes heap accumulation in wildfly 28 is the real problem. This issue is resolve in infinispan on wildfly 29, so I will upgrade my app to run on Wildfly 29. Related to infinispan ticket https://issues.redhat.com/browse/ISPN-14869
Reply all
Reply to author
Forward
0 new messages