Running the Periodic Distributed Garbage Collection
The periodic DGC can be run in any of the following ways:
run-dgc shell script - Call the run-dgc shell script to trigger DGC externally.
JMX - Trigger DGC through the server's JMX management interface.
By default, DGC is disabled in the Terracotta configuration file in the <garbage-collection> section. However, even if disabled, it will run automatically under certain circumstances when clearing garbage is necessary but the inline DGC does not run (such as when a crashed server returns to the cluster).