Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view contents of infinispan cache?

Tags:

infinispan

I am using the infinispan cache in a grails project.

Is there any way I can hit a JMX port or anything to see the contents of the cache?

Thanks.

like image 205
Breako Breako Avatar asked Jan 21 '26 05:01

Breako Breako


1 Answers

Here are docs for JMX operations. And no, there is no JMX operation that would show all entries.

In local/replicated mode, you can call values() on the cache to get all values, but this is not a recommended operation for production (it does not scale very well). Instead, look on Distributed Executors or Map/Reduce API.

like image 195
Radim Vansa Avatar answered Jan 26 '26 20:01

Radim Vansa