Rather than reinvent the wheel, we recommend reviewing the following resource: https://stackoverflow.com/questions/54144713/is-there-a-replacement-for-the-garbage-collection-jvm-args-in-java-11
In addition, Oracle describes these in even more detail in the following documentation: https://docs.oracle.com/javase/9/tools/java.htm#JSWOR624
VMware GemFire is an application running in a JVM. You must have some expertise in the configuration and behavior of GC in your environment, including the finer tuning of your application given the heap and CPU provisioned.
VMware GemFire Support can be engaged to assist, but in-house expertise is needed and the finer tuning of GC will generally fall to our field consulting engineering teams.