My Oracle Support Banner

Sample Code to Get the Cluster Members' Details and Cache Sizes with Their Cache Names (Doc ID 2739988.1)

Last updated on MARCH 25, 2024

Applies to:

Oracle Coherence - Version and later
Oracle WebLogic Server - Version 10.3.6 and later
Information in this document applies to any platform.


This is a sample code to help an user to find the members of the cluster and size (no. of entries) of caches. Sometimes user might not have access to the JMX Console or Oracle Enterprise Manager Console to review these details. This code is a standalone coherence storage disabled client joins the cluster and grep the details using the coherence API and prints them to the stdout.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 Sample Code
 Sample Output

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.