All Supported GemFire versions
In VMware GemFire client-side statistics are not exposed directly through Pool or ClientCache configuration objects. These configuration objects describe how to connect (intent), whereas the Statistics subsystem and management interfaces (JMX, gfsh, .gfs archives) describe what is happening (metrics).
If you have limited filesystem access and cannot easily retrieve .gfs statistics archives, there are two main approaches:
Client connection pool statistics on the client are exposed via the Statistics API, not via Pool or ClientCache directly. Client pool statistics are grouped under the type name PoolStats, and client messaging metrics under ClientStats / ClientSendStats.
High-level steps:
This requires custom code in the client and is the primary way to get “client-side” values for active connections and in‑flight operations without relying on .gfs files.
Even if you cannot routinely pull the .gfs archive, it is still recommended to enable statistics sampling so the metrics exist and can be inspected when needed.
In gemfire.properties on the client:
This does not automatically print stats to the logs, but it ensures that both the programmatic API and tools (e.g., gemfire stats, gfsh show metrics) have data to work with.
GemFire does not periodically dump detailed statistics to the client log at normal log levels. To see selected metrics in logs, you typically:
This approach is generally preferred over globally increasing log verbosity, because it gives you fine‑grained control over which statistics are written and at what rate.
Server-side client health via JMX and gfsh
Client “health” and connection counts can also be obtained on the server side, for connected clients.
Usage considerations:
You can also obtain high-level connection counts via:
Example: Spring-based JMX client
A concrete example of using JMX from a Spring application to query GemFire health is available here:
This shows how to connect to GemFire JMX and invoke management operations from a Java/Spring application.
Important limitations and clarifications
References: