In order to have maximum throughput and low latency, we need to use G1 GC and a large heap. When we have a large heap, a shorter pause time will lead to more time spent on serving the request, which is high throughput.
We use the -XX:+UseG1GC JVM option to indicate the JVM should use the G1 GC type.