@@ -12,9 +12,9 @@ JIRA_HOME="<%= @homedir %>"
1212# Occasionally Atlassian Support may recommend that you set some specific JVM arguments. You can use this variable below to do that.
1313#
1414<%- if @jvm_type == 'openjdk-11' -%>
15- JVM_SUPPORT_RECOMMENDED_ARGS='-XX:-HeapDumpOnOutOfMemoryError <%= @jvm_optional_additional %> '
15+ JVM_SUPPORT_RECOMMENDED_ARGS='-XX:-HeapDumpOnOutOfMemoryError <%= @jvm_optional %> '
1616<%- elsif @jvm_type == 'oracle-jdk-1.8' -%>
17- JVM_SUPPORT_RECOMMENDED_ARGS='-XX:-HeapDumpOnOutOfMemoryError <%= @jvm_optional_additional %> '
17+ JVM_SUPPORT_RECOMMENDED_ARGS='-XX:-HeapDumpOnOutOfMemoryError <%= @jvm_optional %> '
1818<%- elsif @jvm_type == 'custom' -%>
1919JVM_SUPPORT_RECOMMENDED_ARGS='<%= @jvm_optional %> '
2020<%- end -%>
@@ -26,9 +26,9 @@ JVM_SUPPORT_RECOMMENDED_ARGS='<%= @jvm_optional %>'
2626# For Java 11 and larger heaps we recommend: -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent
2727#
2828<%- if @jvm_type == 'openjdk-11' -%>
29- JVM_GC_ARGS='-XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent <%= @jvm_gc_args_additional %> '
29+ JVM_GC_ARGS='-XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent <%= @jvm_gc_args %> '
3030<%- elsif @jvm_type == 'oracle-jdk-1.8' -%>
31- JVM_GC_ARGS='<%= @jvm_gc_args_additional %> '
31+ JVM_GC_ARGS='<%= @jvm_gc_args %> '
3232<%- elsif @jvm_type == 'custom' -%>
3333JVM_GC_ARGS='<%= @jvm_gc_args %> '
3434<%- end -%>
@@ -44,9 +44,9 @@ JVM_PERMGEN_MEMORY='<%= @jvm_permgen %>'
4444# The following setting configures the size of JVM code cache. A high value of reserved size allows Jira to work with more installed apps.
4545#
4646<%- if @jvm_type == 'openjdk-11' -%>
47- JVM_CODE_CACHE_ARGS='-XX:InitialCodeCacheSize=32m -XX:ReservedCodeCacheSize=512m <%= @jvm_codecache_args_additional %> '
47+ JVM_CODE_CACHE_ARGS='-XX:InitialCodeCacheSize=32m -XX:ReservedCodeCacheSize=512m <%= @jvm_codecache_args %> '
4848<%- elsif @jvm_type == 'oracle-jdk-1.8' -%>
49- JVM_CODE_CACHE_ARGS='-XX:InitialCodeCacheSize=32m -XX:ReservedCodeCacheSize=512m <%= @jvm_codecache_args_additional %> '
49+ JVM_CODE_CACHE_ARGS='-XX:InitialCodeCacheSize=32m -XX:ReservedCodeCacheSize=512m <%= @jvm_codecache_args %> '
5050<%- elsif @jvm_type == 'custom' -%>
5151JVM_CODE_CACHE_ARGS='<%= @jvm_codecache_args %> '
5252<%- end -%>
@@ -82,12 +82,12 @@ DISABLE_NOTIFICATIONS='-Datlassian.mail.senddisabled=true -Datlassian.mail.fetch
8282# occurs frequently, which could make it harder for support to diagnose a problem.
8383#-----------------------------------------------------------------------------------
8484<%- if @jvm_type == 'openjdk-11' -%>
85- JVM_EXTRA_ARGS='<%= @jvm_extra_args_additional %> '
85+ JVM_EXTRA_ARGS='<%= @jvm_extra_args_real %> '
8686JVM_EXTRA_ARGS+='-XX:+ExplicitGCInvokesConcurrent -XX:-OmitStackTraceInFastThrow -Djava.locale.providers=COMPAT'
8787<%- elsif @jvm_type == 'oracle-jdk-1.8' -%>
88- JVM_EXTRA_ARGS='-XX:+PrintGCDateStamps -XX:+ExplicitGCInvokesConcurrent -XX:-OmitStackTraceInFastThrow -Djava.locale.providers=COMPAT <%= @jvm_extra_args_additional %> '
88+ JVM_EXTRA_ARGS='-XX:+PrintGCDateStamps -XX:+ExplicitGCInvokesConcurrent -XX:-OmitStackTraceInFastThrow -Djava.locale.providers=COMPAT <%= @jvm_extra_args_real %> '
8989<%- elsif @jvm_type == 'custom' -%>
90- JVM_EXTRA_ARGS='<%= @jvm_extra_args %> '
90+ JVM_EXTRA_ARGS='<%= @jvm_extra_args_real %> '
9191<%- end -%>
9292
9393CURRENT_NOFILES_LIMIT=$( ulimit -Hn )
0 commit comments