The entries in the GemFire region need to be automatically destroyed based on the TTL configured using entry-time-to-live.
As per the GemFire documentation:
By default, one thread handles expiration, and it is possible for the thread to become overloaded when entries expire faster than the thread can expire them. If a single thread is handling too many expirations, it can result in an OOME. Set the gemfire.EXPIRY_THREADS system property to the desired number when starting the cache server.
Based on this, the property - gemfire.EXPIRY_THREADS
has been set in the start server command as:
start server --J=-Dgemfire.EXPIRY_THREADS=10 ...
The server logs show:
Command Line Parameters:
...
...
-Dgemfire.EXPIRY_THREADS=10
...
System Properties:
...
...
gemfire.EXPIRY_THREADS = 10
...
Upon checking the logs, there were occurrences only for <Expiry 9>
, <Expiry 1>
, <Expiry 4>
, <Expiry 6>
but not for all the 10 threads as I would have expected to see.
Is there a reliable way to verify from the GemFire server logs that the configured number of threads are being created/used for the expiration?
GemFire version: 9.10.13