-
1. Re: Infinispan cache monitoring and management
nadirx Nov 28, 2013 5:21 AM (in response to binu.surendran)1 of 1 people found this helpfulWe do provide RHQ/JON plugins for both embedded and client/server modes, which allow collecting metrics and performing some types of operation (clearing a cache is one of them).
However we do not have any support for inspecting and modifying entries in the cache through RHQ/JON, whereas the CLI does.
-
2. Re: Infinispan cache monitoring and management
binu.surendran Nov 28, 2013 7:37 AM (in response to nadirx)Our requirement scope is below;
1. Inspect cache - for specific content (mainly using key)
2. Clear cache
Could I get some details about the CLI tool you mentioned.
-
3. Re: Infinispan cache monitoring and management
rpelisse Nov 28, 2013 7:55 AM (in response to binu.surendran)1 of 1 people found this helpfulHi Binu,
I think you'll find the information you are looking for in the documentation on the CLI tool. (also note that quickly googling "InfiniSpan CLI" you'll have land there )
Cheers,
-
4. Re: Infinispan cache monitoring and management
binu.surendran Nov 28, 2013 11:38 PM (in response to rpelisse)Thanks Romain, seems a perfect one.
-
5. Re: Infinispan cache monitoring and management
binu.surendran Dec 3, 2013 8:21 AM (in response to rpelisse)Hi Romain,
If we are using Infinispan version (Infinispan subsystem) available with JBoss server, will this CLI tool works ? In our case the Infinispan cache is a subsystem and will be start/stop as part of JBoss server initiation.
We are using JBoss 7.2.0 version and Infinispan 5.2.1 version.
The details;
1. We are using Cache support in Spring environment (version 3.2).
2. Using @Cacheable annotation, mainly method level caching
3. The Cache implementation uses Infinispan subsytem as Cache store..
4. The cacheManager created in Spring xml, like below
<!-- Infinispan cache manager -->
<bean id="cacheManager"
class="xx.com.xxx.xxx.framework.cache.spring.SpringCacheManagerFactoryBean"
p:jndiName="java:jboss/abcContainer"/>
5. The cache defined as follows in JBoss configuration xml (standalone.xml)
<subsystem xmlns="urn:jboss:domain:infinispan:1.4">
<cache-container name="abcContainer" default-cache="default"
jndi-name="abcContainer" start="EAGER">
<local-cache name="default">
<transaction mode="NON_XA" />
<eviction strategy="LRU" max-entries="1000" />
<expiration lifespan="600000" max-idle="0" />
</local-cache>
<local-cache name="cache-1" start="EAGER">
<transaction mode="NON_XA" />
<eviction strategy="LRU" max-entries="100" />
<expiration lifespan="300000" max-idle="100000" />
</local-cache>
like this we have some more Cache systems with different names...
So the requirement is to check/verify the content of each Cache at specific point of time,
clear the cache.
-
6. Re: Infinispan cache monitoring and management
binu.surendran Dec 18, 2013 1:43 AM (in response to binu.surendran)Hi,
Currently I am able to connect to Infinispan instance running on JBoss As and able to query cache container, I am using following command to connect
>connect remoting://host:port
But I am facing issue with connecting to a remote server, i.e the JBoss server running on a different machine and infinispan-CLI command tool trying to connect from remote location.
Example: The remote server where JBoss AS is running (included the infinispan-CLI server) is 1.2.3.4 and port is 9999
Case-1. >connect remoting://1.2.3.4:9999 , following error on client side, and no error on server
Remote connection failed: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
Case-2. >connect remoting://user@1.2.3.4:9999, where user is username of Management user. following error on client side;
Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
following error on server side;
ERROR [org.jboss.remoting.remote.connection] (Remoting "hostname:MANAGEMENT" read-1) JBREM000200: Remote connection failed: java.io.IOExcept
ion: Received an invalid message length of 1246907721
Note: I created a Management user using add-user.[bat|sh] and added <server-identities> under <security-realm name="ManagementRealm"> like below, the secret value was given by the add-user script
<security-realm name="ManagementRealm">
<server-identities>
<secret value="XXxxXXXxxX="/>
</server-identities>
But still the issue persists same, could anyone have any idea about this issue.