-1

I use Infinispan Cache in my Java project.
How I can read content of Infinispan Cache? I searched the external libraries, but unsuccessfully.

I want to open something on the browser and look at the contents, objects, current usage in RAM (it would not be bad), expired / not expired, what time expired for each and how many of them in the system.

This can be done for example via jvisualvm, but this is not convenient, and there is a connection problem. And there is no web-interface for jvisualvm.

There are exists something for solve this question?

  • 1
    Please clarify, what do you mean by "reading content"? And what are those "external libraries"? Iterating through all entries? Cache API inherits from ConcurrentMap, and the keySet(), entrySet() and values() methods work as expected. Maybe you use it as Hibernate ORM Second Level Cache, or through Spring? – Radim Vansa Aug 17 '17 at 07:54
  • I want to open something on the browser and look at the contents, objects, current usage in RAM (it would not be bad), expired / not expired, what time expired for each and how many of them in the system. This can be done for example via jvisualvm, but this is not convenient, and there is a connection problem. And there is no for jvisualvm. – Yurii Mikhailichenko Aug 18 '17 at 15:49
  • Supplemented the question above – Yurii Mikhailichenko Aug 18 '17 at 15:52

1 Answers1

0

As you've noticed, some stat or available operationes are exposed through JMX. For a better user experience, there's the Infinispan Console but this integrates with infinispan running as Server, not in embedded mode (afaik).

Radim Vansa
  • 5,686
  • 2
  • 25
  • 40