Partitioned caches which contain a small set of very hot keys have the potential to unevenly balance cluster traffic. The attached agent shows how to check for such keys. To use this agent, include the HotKeyAgent.jar (source) file in the classpath of each cache server, and ensure that the servers are running either the Management or Invocation Service. To check for hot keys run the jar, supplying the name of the cache you wish to check. Additionally you may specify the number of keys per server to return, and the Invocation Service which should be used to perform the check.
This example assumes a cluster containing four cache servers and 10000 keys, where key 1000 is very hot. In this example only the top 3 keys from each server are requested.