Hi Sudhir,

The JVM does garbage collection automatically. There is really no need to
use the 'gc' command.

If you start your servers with gfsh, we default to using using
ConcMarkSweepGC with the below configuration options. The
CMSInitiatingOccupancyFraction setting means that GC automatically kicks in
when the heap is 60% full.

-XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=60

You could change this to a different level if you want. If you go do that
road, I would recommend trying different settings and see what gives you
better *throughput* and not worry about how much garbage there is in the
heap at any given time.

-Dan

Reply via email to