First, to print all the default JVM settings, use : java -XX:+PrintFlagsFinal -version
By default, JVM Hotspot runs in the -client
mode.
You can use the following parameters when starting your script -XX:+UnlockDiagnosticVMOptions -XX:+LogVMOutput -XX:LogFile=jvm.log
to obtain a log containing all the properties/arguments set at the VM startup.
Regarding the GC, the defaults are determined by the JVM Ergonomics, see Java SE 6 HotSpot[tm] Virtual Machine Garbage Collection Tuning. In short :
If not otherwise set on the command line, the initial and maximum heap sizes are calculated based on the amount of memory on the machine, the default maximum heap size will not exceed 1GB, regardless of how much memory is installed on the machine.
In the same document, the chosen GC algorithm depends on the hardware setup, the VM will decide between Serial and Parallel collectors. To see which one is running in the end, enable GC logging.
And, you should check out the following Q/A: How is the default java heap size determined?