in catalina.sh I set JAVA_OPTS like this.
JAVA_OPTS="-server -Xms2048m -Xmx2048m"
in this case what is default GC option?
I think default option is serial GC.(-XX:+UseSerialGC)
thanks.
This article says:
On server-class machines running the server VM, the garbage collector (GC) has changed from the previous serial collector (-XX:+UseSerialGC) to a parallel collector (-XX:+UseParallelGC). You can override this default by using the -XX:+UseSerialGC command-line option to the java command.
As you are forcing the server VM using -server, this also applies to you.
You can always double check this with JConsole through JMX.
Unless Tomcat sets something different it's the same as the default for the JVM.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With