A VMware Tanzu GemFire service instance goes into read-only mode (put operations fail), when heap consumption crosses the critical Threshold. Normal operations are only fully restored once your tenured heap consumption goes back down to a more healthy level below the critical-threshold. This reduction is driven by the fact that data is getting evicted, creating garbage, and allowing GC to run and reduce that tenured heap utilization.
The recommendation is to proactively monitor the heap usage using service metrics and then take corrective actions like scaling horizontally or vertically.
VMware Tanzu GemFire clusters and brokers emit service metrics. Any tool that has a corresponding Cloud Foundry nozzle to read and monitor these metrics in real time, can be used to generate events or alerts.