Hello sid!
Greetings.
1. Default GC algorithm
If you explicitly don't specify the GC algorithm in the JVM arguments then default GC algorithm will be used. Default algorithm depends on your JVM version:
a. If you are running on Java 9 and above version then 'G1' is the default GC algorithm.
b. If you are running on versions before Java 9 then 'Parallel GC' is the default GC algorithm
2. Capturing GC logs and Thread dumps in PCF containers
You can use yCrash script. It not only capture GC log, thread dump but also below mentioned 360-degree artifacts.
Edit your Comment