gc

Force GC (Garbage Collection) on a member or members.

The default is for garbage collection to occur on all caching members.

Availability: Online. You must be connected in gfsh to a JMX Manager member to use this command.

Syntax:
gc [--group=value(,value)*] [--member=value]
group Group(s) of members on which garbage collection will be done.
member Name/Id of the member on which garbage collection will be done.
Example Commands:
gc --member=server1
gc --group=Group1
gc
Sample Output:
gfsh>gc
Sucessfully executed GC