infinispan

Preloading issue with Infinispan (not instance of AdvancedCacheLoader)

一个人想着一个人 提交于 2019-12-12 02:33:07
问题 I try to start a cache with a SingleFileStore for infinispan with have the following config: confBuilder.persistence().addSingleFileStore() .location("Something").fetchPersistentState(Boolean.TRUE) .preload(true).purgeOnStartup(false); but after upgrading to a newer version of infinispan I start getting the following error: Caused by: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.persistence.manager.PersistenceManagerImpl.preload() on object of type

Use infinispan 7 for wildfly 8.1.0

╄→гoц情女王★ 提交于 2019-12-11 19:55:45
问题 in Wildfly 8.1.0, infinispan 6.0.2.Final is integrated, but I want to use newer version of Infinispan, 7.0.0.final, how can I configure wildfly or my pom.xml/jboss-deployment-structure.xml to use external infinispan 7.0.0.Final, not its own infinispan (6.0.2.Final). Thank you. 回答1: Create w JBOSS Module for Infinispan 7. Go to: %WILDFLY_HOME%\modules\system\layers\base\org\infinispan\ and copy the \main folder and rename it to for example \version7 . Inside this folder delete the infinispan 6

Infinispan Eviction Strategy

你。 提交于 2019-12-11 12:35:15
问题 I had eviction max-entries as 2000 and strategy as LRIS. But eviction started before reaching reaching the upper limit of 2000. So, my question is if there some kind of memory constraint here which caused this eviction strategy to work? If yes, how and where is it specified? For now, i have changed eviction strategy to NONE. Any help will be appreciated. 回答1: Infinispan does not provide any memory-based eviction yet. Infinispan uses a concurrent hash map that splits the hash space in segments

Infinispan data eviction

為{幸葍}努か 提交于 2019-12-11 10:35:46
问题 I use infinispan cache version 5.1.6.FINA. I have configured named cache: <namedCache name="cacheName"> <locking lockAcquisitionTimeout="5000" /> <eviction maxEntries="10" strategy="NONE" /> <expiration lifespan="-1" maxIdle="-1" /> </namedCache> I use it to store some data in memory only. I use this configuration during creating cache where key is Long and value is String and hold there only 4 elements always only 4. For this purpose I have hardcoded 4 keys: 1L, 2L, 3L, 4L and sometimes just

Infinispan with TreeCacheAPI

被刻印的时光 ゝ 提交于 2019-12-11 05:59:24
问题 I am using Infinispan with TreeCache API on weblogic server 10.3.6. Since I am using TreeCache API, I have to use invocation batching. Below is the XML <?xml version="1.0" encoding="UTF-8"?> <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:infinispan:config:5.3 http://www.infinispan.org/schemas/infinispan-config-5.3.xsd" xmlns="urn:infinispan:config:5.3"> <global> <globalJmxStatistics enabled = "true" /> </global> <default> <invocationBatching enabled

Custom hashing function in infinispan

蓝咒 提交于 2019-12-11 05:25:49
问题 I am using Infinispan version 8.2 .I already knew when an Node puts an entry to an Cache.It uses its internal hashing on the key and chooses a primary node in an cluster. I know that we can override this hashing with our custom hash function.But I don't know where to start and how to start.I have searched through a lot of documents and websites.But,none of them had a proper description in it. I want someone to help me in this. Thanks in advance. 回答1: If you speak about determining the

Understanding Infinispan Eviction, Expiration and File store?

ぐ巨炮叔叔 提交于 2019-12-11 05:19:43
问题 Consider a Infinispan cache ( version 5.3.0.Final) Which having following properties, Have file store Passivation is set to true. I have following problems when understanding the cache behavior. Is there two threads for eviction and expiration ? When expiration thread runs, what happens to entries which are in file, but has expired ? Do those load back to memory and removed ? What is time duration for these threads to run ? Does the file store file is append-only file ? Does file has a index

Infinispan Server : How to enable JMX monitoring?

隐身守侯 提交于 2019-12-11 03:04:46
问题 I have an Infinispan Server , version 6.0.x, the one derived from JBoss 7.2, and it is working fine for caching. However, when I try to monitor it by JMX I can't. This is URL I type in jconsole.bat : service:jmx:remoting-jmx://MY.IP.ADDRESS.HERE:9999 But I get this error : Exception in thread "VMPanel.connect" java.util.ServiceConfigurationError: javax.management.remote.JMXConnectorProvider: Provider org.jboss.remotingjmx.RemotingConnectorProvider could not be instantiated: java.lang

Replicated infinispan cache with Wildfly 11

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 02:22:15
问题 I'm developing a web application distributed on multi nodes with java 8 and java ee7 on wildfly-11.0.0.Final, and i used infinispan cache for share data. This is the configuration of cache: <cache-container name="mycache-container" default-cache="my-cache" jndi-name="infinispan/mycache-container"> <transport lock-timeout="60000"/> <replicated-cache name="my-cache" jndi-name="infinispan/mycache-container/my-cache" mode="ASYNC"> <locking isolation="READ_COMMITTED"/> <transaction locking=

Maven + Surefire/Failsafe - forkMode=“perthread” is not working … a workaround?

你。 提交于 2019-12-11 01:55:29
问题 We are developing an application based in an Embedded Infinispan Data-grid cluster. In the targeted environment of our application, each member of the data-grid will run in a independent JVM and using jgroup the cluster will be formed (this is done by Infinispan actually). For do some automated testing over this data-grid we were working with maven-surefire-plugin (or maven-failsafe-plugin ) with this configuration: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven