Can anyone please tell if the below syntax is correct(specifically double quotes)?Or there should not be any quotes after $JAVA_OPTS at the beginning of "-XX:+UseG1GC ?
JAVA_OPTS="$JAVA_OPTS "-XX:+UseG1GC -Xloggc:/opt/jboss-eap/gc_logs/jvm-gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintHeapAtGC -XX:+PrintGCApplicationStoppedTime -XX:PrintFLSStatistics=1""
There should not be any quotes at the beginning of -XX:+UseG1GC
. Your final JAVA_OPTS
will be
JAVA_OPTS="$JAVA_OPTS -XX:+UseG1GC -Xloggc:/opt/jboss-eap/gc_logs/jvm-gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintHeapAtGC -XX:+PrintGCApplicationStoppedTime -XX:PrintFLSStatistics=1"