Do not use UseConcMarkSweepGC with openjdk > 11.

This commit is contained in:
Andrea Dell'Amico 2024-07-22 14:22:14 +02:00
parent be78981443
commit 5251a37035
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 1 additions and 2 deletions

View File

@ -25,8 +25,7 @@ tomcat_permgen_size: 512m
tomcat_file_encoding: 'UTF-8'
tomcat_java_opts: "-Xms{{ tomcat_min_heap_size }} -Xmx{{ tomcat_heap_size }}"
tomcat_additional_java_8_opts: "-XX:+CrashOnOutOfMemoryError"
tomcat_java_gc_opts: "-XX:+UseConcMarkSweepGC"
# tomcat_other_java_opts: "-Djsse.enableSNIExtension=false"
tomcat_java_gc_opts: "{% if openjdk_default is version_compare('11', '<=') %}-XX:+UseConcMarkSweepGC{% else %}{% endif %}"
tomcat_proxy_enabled: false
tomcat_proxy_http_host: 'localhost'
tomcat_proxy_http_port: '3128'